ftell Questions

4

Solved

On a 32-bit system, what does ftell return if the current position indicator of a file opened in binary mode is past the 2GB point? In the C99 standard, is this undefined behavior since ftell must ...
Steamship asked 22/5, 2013 at 15:51

2

I am trying to build Android L for 64-bit architecture. My code goes like: #if (HAS_LARGE_FILE_SUPPORT) #define _FILE_OFFSET_BITS 64 //Defined in header file /*Some File operations*/ #if HAS_LA...
Weitzel asked 28/9, 2015 at 15:3

2

Solved

I am having a problem where ftell is returning an incorrect value. My code, when run in netbeans on linux reports correctly, but the exact same code, running in netbeans on windows (using mingw) re...
Reduction asked 8/10, 2013 at 23:16

4

Solved

Here is my code: <?php $url="http://www.sina.com.cn"; $handle = @fopen($url, "r"); $len=get_headers($url,true); print_r($len); echo $len['Content-Length']."\n"; if ($handle) { while (($b...
Briolette asked 24/12, 2015 at 2:16

0

Ok, so basically I'm working on a project where I need to stream MP4 videos from a hidden source. As most of people in this forum with this problem, I've used a solution derived from: http://mobi...
Jezabel asked 2/4, 2014 at 9:22

6

Before anyone complains of "duplicate", I've been checking SO quite thoroughly, but there seem to be no clean answer yet, although the question looks quite simple. I'm looking for a porta...
Scriptorium asked 26/1, 2012 at 23:15

1

Solved

What is the difference between ftello/fseeko and fgetpos/fsetpos? Both seem to be file pointer getting/setting functions that use opaque offset types to sometimes allow 64 bit offsets. Are they sup...
Redfish asked 25/8, 2012 at 4:23

3

Solved

I have a file of about 2000 lines of text that i generate in my program, every line has the information of an employee and it's outputed like this 1 1 Isaac Fonseca 58 c 1600 1310.40 6 1 0.22 21...
Picasso asked 14/7, 2012 at 22:31

4

Solved

In C or C++, the following can be used to return a file size: const unsigned long long at_beg = (unsigned long long) ftell(filePtr); fseek(filePtr, 0, SEEK_END); const unsigned long long at_end = ...
Notation asked 3/2, 2012 at 20:46

1

Solved

Is there a way to do what ftell() does (return the current position in the file) on a raw file descriptor instead of a FILE*? I think there ought to be, since you can seek on a raw file descriptor ...
Bolometer asked 3/8, 2010 at 17:53

1

Solved

The following code outputs "Illegal seek": #include <stdio.h> #include <errno.h> #include <string.h> int main() { errno = 0; getchar(); getchar(); getchar(); ftell( stdin ...
Galle asked 23/3, 2010 at 18:15

4

Solved

Very simply put, I have the following code snippet: FILE* test = fopen("C:\\core.u", "w"); printf("Filepointer at: %d\n", ftell(test)); fwrite(data, size, 1, test); printf("Written: %d bytes.\n", ...
Halfhour asked 28/9, 2008 at 2:20

4

Solved

FILE *out=fopen64("text.txt","w+"); unsigned int write; char *outbuf=new char[write]; //fill outbuf printf("%i\n",ftello64(out)); fwrite(outbuf,sizeof(char),write,out); printf("%i\n",write); printf...
Rip asked 19/10, 2009 at 0:15
1

© 2022 - 2024 — McMap. All rights reserved.