C常用函數

檢查空格字符

#include <ctype.h>

int isspace ( int c );

http://www.cplusplus.com/reference/clibrary/cctype/isspace/

Checks if parameter c is a white-space character.For the purpose of this function, standard white-space characters are:
' ' (0x20) space (SPC)
'/t' (0x09) horizontal tab (TAB)
'/n' (0x0a) newline (LF)
'/v' (0x0b) vertical tab (VT)
'/f' (0x0c) feed (FF)
'/r' (0x0d) carriage return (CR)

 

 

memcpy實現:

發佈了39 篇原創文章 · 獲贊 1 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章