易截截图软件、单文件、免安装、纯绿色、仅160KB

C 1X 新增特性


C1X是C语言即C99标准之后将要推出的最新标准,了解到得原文如下:
C1X is the unofficial name of the planned new standard for the C programming language. It is intended to replace the existing C standard. This predecessor is informally known as C99. The standard is not yet finalized. The most recent working draft, N1425, was published in November 2009.
The November 2009 draft includes several changes to the C99 language and library specifications, such as:
Alignment specification (_Align specifier, alignof operator, aligned_alloc function)
Multithreading support (_Thread_local storage-class specifier, <threads.h> header including thread creation/management functions, mutex, condition variable and thread-specific storage functionality)
Improved Unicode support (char16_t and char32_t types for storing UTF-16/UTF-32 encoded data, including the corresponding u and U string literal prefixes and conversion functions in <uchar.h>)
Removal of the gets function
Bounds-checking interfaces (Annex K)
Analyzability features (Annex L)
Some[who?] are critical about the addition of multithreading to the C programming language. Many[who?] may argue that thread locking isn't necessary and shouldn't be encouraged. The type names proposed (cnd_t, thrd_t, tss_t, mtx_t, tss_dtor_t) may also be considered inappropriately obscure by some.
总结一下主要有下面几点:
1、新的对齐规范
2、多线程的支持
3、Unicode支持
4、移除gets函数
5、边界检测得支持
6、分析性功能
比较感兴趣的事多线程支持和Unicode的支持。


相关文档:

Linux下常用C语言字符串操作函数

stroul,
strdup
snprintf()
atio
 
C中常用字符串操作函数
#include <string.h>
 
size_t strlen(const char *s)   测量字符串长度s的实际长度。
例如s[20]="abc",那么strlen(s)的结果是3,而不是20.这就是实际长度
 
char *strcat(const char *s1, const *s2)  ......

通配符的 C 语言源代码

/* find files from wildcards, for MicroSoft C v4.0 */
/* ------------------------------------------------------------ */
/*   copyright 1986:      */
/*   Nourse Gregg & Browne, Inc.  */
/*   1 Horizon Road. #612 ......

(转)C/C++中时间函数的介绍

1.概念
       在C/C++中,对字符串的操作有很多值得注意的问题,同样,C/C++对时间的操作也有许多值得大家注意的地方。最近,在技术群中有很多网友也多次问到过C++语言中对时间的操作、获取和显示等等的问题。下面,在这篇文章中,笔者将主要介绍在C/C++中时间和日期的使用方法.  ......

学c的很多

c学的人很多。但十之八九是半桶水。或者写得很死。也许我这话有点偏激。但是我给出一个标准吧。你能写出像linux内核代码这样的代码吗?其实任何一门语言的精髓,在于运用。所以在学习之前最好问一问我为什要学这门语言。如果是为学而学,学到最后又是半桶水。还真的不如看小说来得刺激。没有目的干事情,本身就是一种浪费。 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号