Changeset 23 for trunk/kernel/libk/string.h
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/string.h
r1 r23 83 83 84 84 /******************************************************************************************** 85 * TODO85 * this function copies the <src> buffer to the <dst> buffer, including the terminating NUL. 86 86 ******************************************************************************************** 87 * @ dst : pointer on destination buffer. 88 * @ src : pointer on source buffer. 87 89 *******************************************************************************************/ 88 char * strcpy ( char * d est,90 char * strcpy ( char * dst, 89 91 char * src ); 90 92 91 93 /******************************************************************************************** 92 * T ODO94 * This function copies <n> characters from the <sr> buffer to the <dst> buffer. 93 95 ******************************************************************************************** 96 * @ dst : pointer on destination buffer. 97 * @ src : pointer on source buffer. 98 * @ n : number of characters to be copied. 94 99 *******************************************************************************************/ 95 char * strncpy ( char * d est,100 char * strncpy ( char * dst, 96 101 char * src, 97 102 uint32_t n ); 98 103 99 104 /******************************************************************************************** 100 * T ODO105 * This function locates the first occurence of the <c> character in the <s> string. 101 106 ******************************************************************************************** 107 * @ s : string to be analysed. 108 * @ c : searched character value (casted to a char) 109 * @ return pointer on the found character / return NULL if not found. 102 110 *******************************************************************************************/ 103 111 char * strchr ( const char * s, … … 105 113 106 114 /******************************************************************************************** 107 * T ODO115 * This function locates the last occurence of the <c> character in the <s> string. 108 116 ******************************************************************************************** 117 * @ s : string to be analysed. 118 * @ c : searched character value (casted to a char) 119 * @ return pointer on the found character / return NULL if not found. 109 120 *******************************************************************************************/ 110 121 char * strrchr ( const char * t,
Note: See TracChangeset
for help on using the changeset viewer.