Displaying 1 result from an estimated 1 matches for "szarray".
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...tests/behavior/fileio$ cat fileio.c
#include <inttypes.h>
#include <stdio.h>
const char* filename = "fileio.txt";
int main(int argc, char* argv[])
{
if (argc != 2)
{
printf("Test KernelGen support for File I/O\n");
printf("Usage: %s <szarray>\n", argv[0]);
return 0;
}
size_t szarray = (size_t)strtoumax(argv[1], NULL, 0);
// Write data to file.
FILE* wfile = fopen(filename, "w");
if (!wfile)
{
fprintf(stderr, "Cannot open output file %s\n", filename);
return 1...