Changeset 444 for trunk/libs/mini-libc/string.h
- Timestamp:
- May 16, 2018, 8:31:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/string.h
r439 r444 69 69 70 70 /******************************************************************************************** 71 * This function compares lexicographically the strings s1 and s2, ignoring case.72 ********************************************************************************************73 * @ s1 : pointer on string.74 * @ s2 : pointer on string.75 * @ return 0 if s1 == s2 / return 1 if s1 > s2 / return -1 if s1 < s276 *******************************************************************************************/77 int strcasecmp ( const char * s1,78 const char * s2 );79 80 /********************************************************************************************81 71 * this function copies the <src> buffer to the <dst> buffer, including the terminating NUL. 82 72 ******************************************************************************************** … … 128 118 int c ); 129 119 130 /********************************************************************************************131 * This function returns a lower case ASCII code if input is in [A...Z] range.132 ********************************************************************************************133 * @ c : the 8 LSB bits define the character to be forced to lower case.134 * @ return lower case ASCII code.135 *******************************************************************************************/136 inline int tolower( int c );137 120 138 /******************************************************************************************** 139 * This function returns an upper case ASCII code if input is in [a...z] range. 140 ******************************************************************************************** 141 * @ c : the 8 LSB bits define the character to be forced to upper case. 142 * @ return upper case ASCII code. 143 *******************************************************************************************/ 144 inline int toupper( int c ); 121 /********************************************************************************************* 122 * This function copies the content of a <src> byte array to a <dst> byte array. 123 * Behaviour is undefined if <src> and <dst> arrays overlap. 124 ********************************************************************************************* 125 * @ dst : pointer on destination array. 126 * @ dst : pointer on source array. 127 * @ size : number of bytes to move. 128 * @ return first argument. 129 ********************************************************************************************/ 130 void * memcpy( void * dst, 131 const void * src, 132 unsigned int size ); 133 134 /********************************************************************************************* 135 * This function fill a byte array with a byte value. 136 ********************************************************************************************* 137 * @ dst : pointer on the byte array. 138 * @ s : byte value (will be casted to unsigned char). 139 * @ size : number of bytes to be set. 140 * @ return first argument. 141 ********************************************************************************************/ 142 void * memset( void * dst, 143 int s, 144 unsigned int size); 145 145 146 146 #endif /* _STRING_H_ */
Note: See TracChangeset
for help on using the changeset viewer.