[计算机软件及应用]VC++函数库

函数名 : _ac__ss 所属库名: <io.h> 函数功能: 检查某个文件的存取方式,比如说是只读方式、只写方式等。如果指定的存取方式有效,则函数返回0,否则函数返回-1 使用方法: int _a

_ac__ss 函数名: &lt;io.h&gt; 所属库名: 函数功能:检查某个文件的存取方式,比如说是只读方式、只写方式等。如果指定的存 0-1 取方式有效,则函数返回,否则函数返回 int_ac__ss(constchar*path,intmode); 使用方法: 范例: -ac__ssac__ss.c 这个例子使用函数来检查文件是否是可写的: include&lt;io.h&gt; include&lt;stdio.h&gt; include&lt;stdlib.h&gt; void__in(void) { if((_ac__ss("AC__SS.C",0))!=-1) {printf("FileAC__SS.Cexists\n"); if((_ac__ss("AC__SS.C",2))!=-1) _alloca 函数名: &lt;__lloc.h&gt; 所属库名: void 函数功能:在堆栈上分配一个内存空间,返回一个指向该内存空间地址的型指针 void*_alloca(size_tsize); 使用方法: 范例: 50Int*pointer;size_tSize=100;Pointer=(int 在堆栈上分配一个字节的内存空间: *)_alloca(Size); _atoi64 函数名: &lt;stdlib.h&gt; 所属库名: _int64 函数功能:把一个字符串转换为型 __int64_atoi64(constchar*string); 使用方法: 范例: atof 和函数类似 _beginthread 函数名: &lt;pro__ss.h&gt; 所属库名: 函数功能:创建一个线程 unsignedlong_beginthread(void(__cdecl*start_address)(void*), 使用方法: unsignedstack_size,void*arglist); unsignedlong_beginthreadex( 范例: _beginthreadFirstThread20 这个例子显示了函数的基本用法,是线程的起始地址,数字是 NULL_beginthread(FirstThread,20,NULL); 线程的堆栈空间,常量是线程的参数表: _beginthreadex 函数名: &lt;pro__ss.h&gt; 所属库名:

腾讯文库[计算机软件及应用]VC++函数库