Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

System Utilities


Files

file  psString.h
 Contains the declarations of string utility functions.

Modules

group  Memory Management Utilities
 This is the generic memory management system put inbetween the user's high level code and the OS-level memory allocation routines.
group  Tracing and Logging
group  Error Handling
group  Configure psLib

Functions

char * psStringCopy (const char *str)
 Copies the input string.
char * psStringNCopy (const char *str, psS32 nChar)
 Copies the input string up to the specified number of characters.


Function Documentation

char* psStringCopy const char *  str  ) 
 

Copies the input string.

This function shall allocate memory to the length of the input string plus one and copy the input string to the newly allocated memory.

Returns:
char* Copy of input string
Parameters:
str  Input string of characters to copy

char* psStringNCopy const char *  str,
psS32  nChar
 

Copies the input string up to the specified number of characters.

This function shall allocate memory to the length specified by nChar plus one and copy the input string to the newly allocated memory. This function will only copy nChar bytes from the input to new string, so if the input string is larger than nChar characters the copied string will be a substring of the input string. If the input string is smaller than nChar bytes then the remaining bytes allocated will be set to NULL.

Returns:
char* Copy of input string
Parameters:
str  Input string of characters to copy
nChar  Number of bytes to allocate for string copy


Generated on Mon Apr 4 18:24:47 2005 for Pan-STARRS Foundation Library by  doxygen 1.3.9.1