Main Page   Modules   Data Structures   File List   Data Fields   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 Mon Nov 3 15:39:26 2003 for GM by doxygen1.2.15