Main Page | Modules | Directories | File List | Globals | Related Pages

gm_strncpy.c File Reference

#include "gm_config.h"
#include "gm.h"

Functions

GM_ENTRY_POINT char * gm_strncpy (char *to, const char *from, int len)

Detailed Description

This file contains the GM API function gm_strncpy().

Function Documentation

GM_ENTRY_POINT char* gm_strncpy char *  to,
const char *  from,
int  len
 

gm_strncpy() copies exactly n bytes, truncating src or adding null characters to dst if necessary. The result will not be null-terminated if the length of src is n or more.

Return values:
char* Returns a pointer to a destination string.
Parameters:
to (IN) The destination string to be copied.
from (IN) The source string to be copied.
len (IN) The number of bytes to be copied.
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)


Generated on Sat May 20 19:20:42 2006 for GM by  doxygen 1.4.4