online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#define _GNU_SOURCE #include <string.h> #include <stdlib.h> #include <fcntl.h> #include<stdio.h> #include <unistd.h> int main() { char buff[512]; int f = open("text.txt", O_RDONLY); posix_fadvise(f, 20,20,POSIX_FADV_RANDOM); read(f,buff,512); buff[512] ='\0'; printf("%s \n", buff); close(f); return 0; }
The function posix_memalign() allocates size bytes and places the address of the allocated memory in *memptr. The address of the allocated memory will be a multiple of alignment, which must be a power of two and a multiple of sizeof(void *). If the size is 0, then posix_memalign() returns either NULL or a unique pointer value that can later successfully pass to free(3) The function posix_memalign() allocates size bytes and places the address of the allocated memory in *memptr. The address of the allocated

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue