stracat man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

STRACAT(3)		     C Programmer's Manual		    STRACAT(3)

NAME
       stracat - concatenate many strings into an allocated memory block

SYNOPSIS
       #include <publib.h>
       char *stracat(const char *s, ...);

DESCRIPTION
       stracat will allocate a block of memory with malloc and concatenate all
       arguments strings into this block.  The user is supposed	 to  free  the
       returned	 block.	  The  end of the argument list is signalled by a null
       pointer.

RETURN VALUE
       stracat returns a pointer to the allocated block, or NULL if  it	 could
       not be allocated.

EXAMPLE
       To concatenate "hello, " and "world", one might say the following.

	    p = stracat("hello, ", "world", (char *)NULL);
	    if (p != NULL)
		 puts(p);

       Please note that it is necessary to case NULL as in the example above,
       since there is no information about the type of the argument available
       in the prototype, and since an unadorned NULL might not be of the
       correct type.  (See any good C reference book or the comp.lang.c FAQ for
       more information.)

SEE ALSO
       publib(3), strcat(3)

AUTHOR
       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib			     C Programmer's Manual		    STRACAT(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net