Skip to content

Instantly share code, notes, and snippets.

@theonewolf
Created November 6, 2014 07:33
Show Gist options
  • Save theonewolf/7d2b5208c2ee8bb7abed to your computer and use it in GitHub Desktop.
Save theonewolf/7d2b5208c2ee8bb7abed to your computer and use it in GitHub Desktop.
off_t size test
default: off-test32 off-test64
off-test32: off-test32.c
gcc off-test32.c -o off-test32
off-test64: off-test64.c
gcc off-test64.c -o off-test64
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
fprintf(stdout, "off_t size: %lu\n", sizeof(off_t));
return EXIT_SUCCESS;
}
#define _FILE_OFFSET_BITS 64
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
fprintf(stdout, "off_t size: %lu\n", sizeof(off_t));
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment