Main Page | File List | Globals

src/string.c File Reference

String functions. More...

#include "plibc_private.h"

Go to the source code of this file.


char * strndup (const char *s, size_t n)
size_t strnlen (const char *str, size_t maxlen)

Detailed Description

String functions.

Definition in file string.c.

Function Documentation

char* strndup const char *  s,
size_t  n

return a malloc'd copy of at most the specified number of bytes of a string


Definition at line 33 of file string.c.

References strnlen().

size_t strnlen const char *  str,
size_t  maxlen

Determine the length of a fixed-size string

Jakub Jelinek (jakub at redhat dot com)

Definition at line 51 of file string.c.

Referenced by strndup().

Generated on Sun Sep 4 11:16:48 2005 for PlibC by  doxygen 1.4.2