VC++库函数大全(国外英文资料).doc
文本预览下载声明
VC++库函数大全(国外英文资料)
Appendix 2 is a common library function
Microsoft C provides an extensive library function for application designers, which covers all aspects of programming and must be mastered for every programmer. In this appendix, we select the more commonly used library functions for reference. To save space, we only listed functional prototypes and simple functional instructions. If you have questions about the function of a library function, parameter Settings, return values, etc., you can directly view the relevant instructions in MSDN.
The class library function, the stereotype is in the header file ctype.h. The library functions are actually macros with parameters.
Prototype: int isalpha (int c);
Function: if c returns a non-zero value for the letter, it returns zero.
Prototype: int isdigit (int c);
Function: if c returns a non-zero value for the number, it will return.
Prototype: int isalnum (int c);
Function: if c returns a non-zero value for the letter or number, it returns zero.
Prototype: int islower (int c);
C int isupper (int);
Function: if c returns a non-zero value for lowercase, otherwise it returns 0.
Prototype: int isprint (int c);
Functionality: if c returns a non-zero value for printable characters (including letters, Numbers, Spaces, and various symbols), return 0.
Prototype: int isspace (int c);
Function: if c returns a non-zero value for Spaces, tabs, carriage returns, and so on, otherwise 0 is returned.
Prototype: int tolower (int ch);
Int toupper int (ch);
Function: converts characters to lowercase or uppercase characters.
The directory action function, which is used to handle the file directory system in the program, which is in the header file direct.h.
Prototype: int _chdir (const char * dirname);
Functionality: changing the current directory.
Prototype: int _chdrive (int drive);
Functionality: changing the current driver.
Prototype: char * _getcwd (char * buffer, int maxlen);
Function: read the current directory.
Prototype: char *
显示全部