GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NAMEINDEX (3)

[Include document man1/alc_contents.mac]

   nameindex    nameindex

NAME

nameindex - concatenate a name and index with user separator

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameters
Description
Return Value
Example
See Also

SYNOPSYS






#include "mut.h"
char *nameindex(s, i)
char *s;
long i;


PARAMETERS

s Pointer to a string
t Long integer

DESCRIPTION

The nameindex function adds the separator defined by MBK_SEPAR(1), and then the string version of i at the end of string s. This is not like a strcat(3) of the standard library, because s is not beeing modified.
The string returned has already been put in the names dictionary by a call to namealloc(3).

RETURN VALUE

nameindex returns a pointer to a string in the name hash table.

EXAMPLE






#include "mut.h"
#include "mlo.h"
void a_sig_name(ptsig)
losig_list *ptsig;
{
   return pt->NAMECHAIN ? (char *)(pt->NAMECHAIN->DATA)
            : nameindex("mbk_sig", pt->INDEX);
}


SEE ALSO

mbk(1), namealloc(3), MBK_SEPAR(1).

[Include document man1/alc_bug_report.1]

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 NAMEINDEX (3) October 1, 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.