📄 ansicfunction.htm
字号:
</table> <!-- class=tc20funcationname end -->
</td>
</tr> <!-- class=funnameline -->
<tr id="datefun" class=funnameline>
<td>
<table class=tc20funcationname >
<col width=20%>
<col width=25%>
<col width=5%>
<col width=50%>
<tr>
<td class=TDHEAD colspan=4 >
<b>日期和时间函数 </b>
</td>
<tr>
<tr>
<td CLASS=TDTEXT colspan=4>
本类别给出时间和日期处理函数 <br><br>
<b>头文件</b> time.h <br><br>
<b>函数列表</b>
</td>
</tr>
<tr>
<td CLASS=TDTEXT> 函数类别</td>
<td CLASS=TDTEXT> 函数用途</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> 详细说明</td>
</tr>
<tr>
<td CLASS=TDTEXT>时间操作函数</td>
<td CLASS=TDTEXT>得到处理器时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functionc.htm#clock> clock </a></td>
</tr>
<tr>
<td CLASS=TDTEXT></td>
<td CLASS=TDTEXT>得到时间差</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functiond.htm#difftime> difftime </a></td>
</tr>
<tr>
<td CLASS=TDTEXT></td>
<td CLASS=TDTEXT>设置时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functionm.htm#mktime> mktime </a></td>
</tr>
<tr>
<td CLASS=TDTEXT></td>
<td CLASS=TDTEXT>得到时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functiont.htm#time> time </a></td>
</tr>
<tr>
<td CLASS=TDTEXT>时间转换函数</td>
<td CLASS=TDTEXT>得到以ASCII码表示的时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functiona.htm#asctime> asctime </a></td>
</tr>
<tr>
<td CLASS=TDTEXT></td>
<td CLASS=TDTEXT>得到字符串表示的时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functionc.htm#ctime> ctime </a></td>
</tr>
<tr>
<td CLASS=TDTEXT></td>
<td CLASS=TDTEXT>得到指定格式的时间</td>
<td CLASS=TDTEXT> </td>
<td CLASS=TDTEXT> <a href=tc20functions.htm#strftime> strftime </a></td>
</tr>
</table> <!-- class=tc20funcationname end -->
</td>
</tr> <!-- class=funnameline -->
<tr id="futurefun" class=funnameline>
<td>
<table class=tc20funcationname >
<col width=10%>
<col width=20%>
<col width=10%>
<col width=60%>
<tr>
<td class=TDHEAD colspan=4 >
<b>函数库未来的发展方向 </b>
</td>
<tr>
<tr>
<td CLASS=TDTEXT colspan=4>
本部分用于说明各类别函数库在将来如何发展。<br><br>
</td>
</tr>
<tr>
<td CLASS=TDTEXT> 序号</td>
<td CLASS=TDTEXT> 库类别</td>
<td CLASS=TDTEXT> 头文件 </td>
<td CLASS=TDTEXT> 详细说明</td>
</tr>
<tr>
<td CLASS=TDTEXT>1</td>
<td CLASS=TDTEXT>错误处理</td>
<td CLASS=TDTEXT>errno.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>2</td>
<td CLASS=TDTEXT>字符处理</td>
<td CLASS=TDTEXT>ctype.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>3</td>
<td CLASS=TDTEXT>地区化</td>
<td CLASS=TDTEXT>local.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>4</td>
<td CLASS=TDTEXT>数学函数</td>
<td CLASS=TDTEXT>math.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>5</td>
<td CLASS=TDTEXT>信号处理</td>
<td CLASS=TDTEXT>signal.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>6</td>
<td CLASS=TDTEXT>输入输出</td>
<td CLASS=TDTEXT>stdio.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>7</td>
<td CLASS=TDTEXT>实用工具程序</td>
<td CLASS=TDTEXT>stdlib.h </td>
<td CLASS=TDTEXT> </td>
</tr>
<tr>
<td CLASS=TDTEXT>8</td>
<td CLASS=TDTEXT>字符串处理</td>
<td CLASS=TDTEXT>string.h </td>
<td CLASS=TDTEXT> </td>
</tr>
</table> <!-- class=tc20funcationname end -->
</td>
</tr> <!-- class=funnameline -->
</table>
</BODY>
</HTML>
<!--
4.1 Introduction
4.1.1 Definitions of terms
4.1.2 Standard headers
4.1.2.1 Reserved identifiers
4.1.3 Errors <errno.h>
4.1.4 Limits <float.h> and <limits.h>
4.1.5 Common definitions <stddef.h>
4.1.6 Use of library functions
4.2 Diagnostics <assert.h>
4.2.1 Program diagnostics
4.2.1.1 The assert macro
4.3 Character Handling <ctype.h>
4.3.1 Character testing functions
4.3.1.1 The isalnum function
4.3.1.2 The isalpha function
4.3.1.3 The iscntrl function
4.3.1.4 The isdigit function
4.3.1.5 The isgraph function
4.3.1.6 The islower function
4.3.1.7 The isprint function
4.3.1.8 The ispunct function
4.3.1.9 The isspace function
4.3.1.10 The isupper function
4.3.1.11 The isxdigit function
4.3.2 Character case mapping functions
4.3.2.1 The tolower function
4.3.2.2 The toupper function
4.4 Localization <locale.h>
4.4.1 Locale control
4.4.1.1 The setlocale function
4.4.2 Numeric formatting convention inquiry
4.4.2.1 The localeconv function
4.5 Mathematics <math.h>
4.5.1 Treatment of error conditions
4.5.2 Trigonometric functions
4.5.2.1 The acos function
4.5.2.2 The asin function
4.5.2.3 The atan function
4.5.2.4 The atan2 function
4.5.2.5 The cos function
4.5.2.6 The sin function
4.5.2.7 The tan function
4.5.3 Hyperbolic functions
4.5.3.1 The cosh function
4.5.3.2 The sinh function
4.5.3.3 The tanh function
4.5.4 Exponential and logarithmic functions
4.5.4.1 The exp function
4.5.4.2 The frexp function
4.5.4.3 The ldexp function
4.5.4.4 The log function
4.5.4.5 The log10 function
4.5.4.6 The modf function
4.5.5 Power functions
4.5.5.1 The pow function
4.5.5.2 The sqrt function
4.5.6 Nearest integer, absolute value, and remainder functions
4.5.6.1 The ceil function
4.5.6.2 The fabs function
4.5.6.3 The floor function
4.5.6.4 The fmod function
4.6 Nonlocal jumps <setjmp.h>
4.6.1 Save calling environment
4.6.1.1 The setjmp macro
4.6.2 Restore calling environment
4.6.2.1 The longjmp function
4.7 Signal Handling <signal.h>
4.7.1 Specify signal handling
4.7.1.1 The signal function
4.7.2 Send signal
4.7.2.1 The raise function
4.8 Variable Arguments <stdarg.h>
4.8.1 Variable argument list access macros
4.8.1.1 The va_start macro
4.8.1.2 The va_arg macro
4.8.1.3 The va_end macro
4.9 Input/Output <stdio.h>
4.9.1 Introduction
4.9.2 Streams
4.9.3 Files
4.9.4 Operations on files
4.9.4.1 The remove function
4.9.4.2 The rename function
4.9.4.3 The tmpfile function
4.9.4.4 The tmpnam function
4.9.5 File access functions
4.9.5.1 The fclose function
4.9.5.2 The fflush function
4.9.5.3 The fopen function
4.9.5.4 The freopen function
4.9.5.5 The setbuf function
4.9.5.6 The setvbuf function
4.9.6 Formatted input/output functions
4.9.6.1 The fprintf function
4.9.6.2 The fscanf function
4.9.6.3 The printf function
4.9.6.4 The scanf function
4.9.6.5 The sprintf function
4.9.6.6 The sscanf function
4.9.6.7 The vfprintf function
4.9.6.8 The vprintf function
4.9.6.9 The vsprintf function
4.9.7 Character input/output functions
4.9.7.1 The fgetc function
4.9.7.2 The fgets function
4.9.7.3 The fputc function
4.9.7.4 The fputs function
4.9.7.5 The getc function
4.9.7.6 The getchar function
4.9.7.7 The gets function
4.9.7.8 The putc function
4.9.7.9 The putchar function
4.9.7.10 The puts function
4.9.7.11 The ungetc function
4.9.8 Direct input/output functions
4.9.8.1 The fread function
4.9.8.2 The fwrite function
4.9.9 File positioning functions
4.9.9.1 The fgetpos function
4.9.9.2 The fseek function
4.9.9.3 The fsetpos function
4.9.9.4 The ftell function
4.9.9.5 The rewind function
4.9.10 Error-handling functions
4.9.10.1 The clearerr function
4.9.10.2 The feof function
4.9.10.3 The ferror function
4.9.10.4 The perror function
4.10 General Utilities <stdlib.h>
4.10.1 String conversion functions
4.10.1.1 The atof function
4.10.1.2 The atoi function
4.10.1.3 The atol function
4.10.1.4 The strtod function
4.10.1.5 The strtol function
4.10.1.6 The strtoul function
4.10.2 Pseudo-random sequence generation functions
4.10.2.1 The rand function
4.10.2.2 The srand function
4.10.3 Memory management functions
4.10.3.1 The calloc function
4.10.3.2 The free function
4.10.3.3 The malloc function
4.10.3.4 The realloc function
4.10.4 Communication with the environment
4.10.4.1 The abort function
4.10.4.2 The atexit function
4.10.4.3 The exit function
4.10.4.4 The getenv function
4.10.4.5 The system function
4.10.5 Searching and sorting utilities
4.10.5.2 The bsearch function
4.10.5.1 The qsort function
4.10.6 Integer arithmetic functions
4.10.6.1 The abs function
4.10.6.2 The div function
4.10.6.3 The labs function
4.10.6.4 The ldiv function
4.10.7 Multibyte character functions
4.10.7.1 The mblen function
4.10.7.2 The mbtowc function
4.10.7.3 The wctomb function
4.10.8 Multibyte string functions
4.10.8.1 The mbstowcs function
4.10.8.2 The wcstombs function
4.11 String Handling <string.h>
4.11.1 String function conventions
4.11.2 Copying functions
4.11.2.1 The memcpy function
4.11.2.2 The memmove function
4.11.2.3 The strcpy function
4.11.2.4 The strncpy function
4.11.3 Concatenation functions
4.11.3.1 The strcat function
4.11.3.2 The strncat function
4.11.4 Comparison functions
4.11.4.1 The memcmp function
4.11.4.2 The strcmp function
4.11.4.3 The strcoll function
4.11.4.4 The strncmp function
4.11.4.5 The strxfrm function
4.11.5 Search functions
4.11.5.1 The memchr function
4.11.5.2 The strchr function
4.11.5.3 The strcspn function
4.11.5.4 The strpbrk function
4.11.5.5 The strrchr function
4.11.5.6 The strspn function
4.11.5.7 The strstr function
4.11.5.8 The strtok function
4.11.6 Miscellaneous functions
4.11.6.1 The memset function
4.11.6.2 The strerror function
4.11.6.3 The strlen function
4.12 Date and Time <time.h>
4.12.1 Components of time
4.12.2 Time manipulation functions
4.12.2.1 The clock function
4.12.2.2 The difftime function
4.12.2.3 The mktime function
4.12.2.4 The time function
4.12.3 Time conversion functions
4.12.3.1 The asctime function
4.12.3.2 The ctime function
4.12.3.3 The gmtime function
4.12.3.4 The localtime function
4.12.3.5 The strftime function
4.13 Future library directions
4.13.1 Errors <errno.h>
4.13.2 Character handling <ctype.h>
4.13.3 Localization <locale.h>
4.13.4 Mathematics <math.h>
4.13.5 Signal handling <signal.h>
4.13.6 Input/output <stdio.h>
4.13.7 General utilities <stdlib.h>
4.13.8 String handling <string.h>
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -