/* Terminate calling thread. The registered cleanup handlers are called via exception handling so we cannot mark this function with __THROW.*/ //结束线程 externvoidpthread_exit(void *__retval) __attribute__((__noreturn__));
/* Make calling thread wait for termination of the thread TH. The exit status of the thread is stored in *THREAD_RETURN, if THREAD_RETURN is not NULL. This function is a cancellation point and therefore not marked with __THROW. */ //线程等待 externintpthread_join(pthread_t __th, void **__thread_return);
fp = fopen("/tmp/test.txt", "r"); /* /tmp/test.txt This is testing for fprintf... This is testing for fputs... */ fscanf(fp, "%s", buff); //fscanf() 方法只读取This,因为它在后边遇到了一个空格 printf("1: %s\n", buff );
C语言是一种通用的、面向过程式的计算机程序设计语言。1972 年,为了移植与开发 UNIX 操作系统,丹尼斯·里奇在贝尔电话实验室设计开发了 C 语言。 C标准库是一组 C 内置函数、常量和头文件,比如 stdio.h、stdlib.h、math.h 等等。这个标准库可以作为 C 程序员的参考手册。 C语言标准库有各种不同的实现,比如glibc, 用于嵌入式Linux的uClibc,还有ARM公司的C语言标准库及精简版的MicroLib等。不同标准库的实现并不相同,而且提供的函数也不完全相同,不过有一个它们都支持的最小子集,这也就是最典型的C语言标准库。 典型的C语言标准库(GNU C 标准库)官网:The GNU C Library