波阻系数的英文数翻译数英语怎么说-2021天津中考分数线


2023年4月6日发(作者:考托福好还是雅思好)

获取⽂件信息函数:

_stat,_stat64,_stati64,_wstat,_wstat。。。

这是微软的⽂件状态函数族的⽂档。

函数名:_stat,_stat64,_stati64,_wstat,_wstat64,_wstati64

功能:获取⽂件的信息

以下是各函数原型:

int_stat(

constchar*path,

struct_stat*buffer

);

int_stat64(

constchar*path,

struct__stat64*buffer

);

int_stati64(

constchar*path,

struct_stati64*buffer

);

int_wstat(

constwchar_t*path,

struct_stat*buffer

);

int_wstat64(

constwchar_t*path,

struct__stat64*buffer

);

int_wstati64(

constwchar_t*path,

struct_stati64*buffer

);

Parameters参数

path路径

Pointertoastringcontainingthepathofexistingfile.指向⼀个已经存在的⽂件的指针

buffer缓存

Pointertostructurethatstoresresults.指向⽂件信息存储的结构体

ReturnValue返回值

Eanvalueof–1indicatesanerror,inwhichcaseerrnoissettoENOENT,indicatingthat

thefilenameorpathcouldnotbefound.

Thedatestamponafilecanberepresentedifitislaterthanmidnight,January1,1970,andbefore19:14:07January18,2038,UTCunlessyouuse_stat64or_wstat64,

inwhichcasethedatecanberepresenteduptill23:59:59,December31,3000,UTC.

Remarks备注

The_statfunctionobtainsinformationaboutthefileordirectoryspecifiedbypathandstoresitinthestructurepointedtobybuffer._statautomaticallyhandles

multibyte-characterstringargumentsasappropriate,recognizingmultibyte-charactersequencesaccordingtothemultibytecodepagecurrentlyinuse.

_wstatisawide-characterversionof_stat;thepathargumentto_wstatisawide-characterstring._wstatand_statbehaveidenticallyexceptthat_wstatdoesnot

handlemultibyte-characterstrings.

Generic-TextRoutineMappings

ne_UNICODE&_MBCSnotdefined_MBCSdefined_UNICODEdefined

_tstat_stat_stat_wstat

_tstat64_stat64_stat64_wstat64

_tstati64_stati64_stati64_wstati64

The_statstructure,def春日忆李白拼音版 inedinSYSSTAT.H,includesthefollowingfields.

st_gid

Numericidentifierofgroupthatownsfile(UNIX-specific)ectedfileisclassifiedasa

WindowsNTfile.

st_atime

hesame

st_ctime

nNTFSbutnotonFATformatteddiskdrives.

st_dev

Drivenumberofthediskcontainingthefile(sameasst_rdev).

st_ino

Numberoftheinformationnode(theinode)forthefile(UNIX-specific).OnUNIXfilesystems,theinodedescribesthefiledateandtimestamps,

permissions,lesarehard-linkedtooneanother,de,andthereforest_ino,hasnomeaninginthe

FAT,HPFS,orNTFSfilesystems.

st_mode

_S_IFDIRb杜甫诗三首赏析 itissetifpathspecifiesadirectory;the_S_IFREGbitissetifpathspecifiesanordinaryfileora

ad/writebitsaresetaccordingtothefile\'spermissionmode;userexecutebitsaresetaccordingtothefilenameextension.

st_mtime

Timeofla弱柳从风疑举快下一句 stmodificationoffile.

st_nlink

Always1on《折她》缠枝葡萄 non-NTFSfilesystems.

st_rdev

Drivenumberofthediskcontainingthefile(sameasst_dev).

st_size

Sizeofthefileinbytes;a64-bitintegerfo春夜喜雨古诗杜甫 r_stati64and_wstati64

st_uid

Numericidentifierofuserwhoownsfile(UNIX-specific).ectedfileiscl中秋节的来历和风俗作文 assifiedasa

WindowsNTfile.

Ifpathreferstoadevice,thest_size,varioustimefields,st_dev,andst_rdevfieldsinthe_hetypet描写春天景色的词语有哪些 hatis

definedinTYPES.H,rcode.

Requirements说明

RoutineRequiredheaderOptionalheadersCompatibility

_statfollowedby

Win98,WinMe,WinNT,Win2000,WinXP

_stat64followedby

Win98,WinMe,WinNT,Win2000,WinXP

_stati64followedby

Win98,WinMe,WinNT,Win2000,WinXP

_wstatfollowedby

or

WinNT,Win2000,WinXP

_wstat64follow卓文君最后真实的结局 edby

or

WinNT,Win2000,WinXP

_wstati64followedby

or

WinNT,Win2000,WinXP

Foradditionalcompatibilityinformation,seeintheIntroduction.如果想获取更多的信息,请参考compatibility的介绍。

Libraries库

Allversionsof赠别拼音版 the.的所有版本

Example例⼦

//crt_stat.c

/*Thisprogramusesthe_stat64functionto

*

*/

#include

#include

#include

#include

intmain(void)

{

struct__stat64buf;

intresult;

/*Getdataassociatedwith\"crt_stat.c\":*/

result=_stat64(\"crt_stat.c\",&buf);

/*Checkifstatisticsarevalid:*/

if(result!=0)

perror(\"Problemgettinginformation\");

else

{

/*Outputsomeofthestatistics:*/

printf(\"Filesize:%ldn\",_size);

printf(\"Drive:%c:n\",_dev+\'A\');

printf(\"Timemodified:%s\",_ctime64(&文言文翻译词典 _mtime));

}

}

SampleOutput输出

Filesize:732

Drive:C:

Timemodified:ThuFeb0714:39:362002

更多推荐

stat是什么意思t在线翻译读音例句