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
STRNDUP(3) C Programmer's Manual STRNDUP(3)

strndup - duplicate part of a string

#include <publib.h>
char *strndup(const char *str, size_t n);

strndup will make a duplicate of the n first characters of str, using malloc(3) to allocate memory for the duplicate. The caller is supposed to free the duplicate's memory when no longer needed.

strndup will return a pointer to the duplicate, or NULL if no memory could be allocated.

publib(3), strdup(3)

Lars Wirzenius (lars.wirzenius@helsinki.fi)
C Programmer's Manual Publib

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

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