֪ Ŀ Lib Ƶ iProcess γ ֤ ѯ Modeler   Code  
Ա   
Ҫ
 
 

CԽ̳
CVSװ
CԵһ
CԳִ
Cprintf()scanf()
C
CԹؼ
C
CԿ
Cif-else
Cswitch
Cdo-whileѭ
Cwhileѭ
Cforѭ
Cbreak
Ccontinue
Cgoto
Cֵͨú
CԵݹ
CԴ洢
C
C
CԶά
CԽ鴫ݸ
Cָָ
Cgets()puts()
Cstrlen()
Cstrcpy()
Cstrcat()
Cstrcmp()
Cstrrev()
Cstrlwr()
Cstrupr()
CԽṹ
CԽṹ
CԽṹǶ
C
ļ
Cfprintf()fscanf()
Cfputc()fgetc()
Cfputs()fgets()
Cfseek()
Crewind()
Cftell()
Ԥ
CԤָ
C#includeָ
C#defineָ
C#undefָ
C#ifdefָ
C#ifndefָ
C#ifָ
C#errorָ
C#pragmaָ
 
 

Cftell()
107
3  
 

ftell()ָĵǰļָλáļĩβƶļָǿʹftell()ȡļܴСʹSEEK_ENDļָƶļĩβ

ftell()﷨

long int ftell(FILE *stream)

ʾ

һԴļftell-file.cʾ -

#include <stdio.h>
void main() {
FILE *fp;
int length;
fp = fopen("myfile.txt", "r");
fseek(fp, 0, SEEK_END);
length = ftell(fp);
fclose(fp);
printf("Size of file: %d bytes", length);
}

ִʾ󣬵õ½ -

Size of file: 15 bytes

 

 

 


Ծ֧ǵĹҵ

10Ԫ 50Ԫ





֤룺 ֤,?ˢ֤



107
3