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() { int fd, ret; char *wrbuff = "Welcome to my Blog"; fd = open("abc.txt",O_WRONLY|O_SYNC|O_CREAT,0666); if(fd < 0) { printf("open error\n"); return -1; } ret = write(fd, wrbuff, strlen(wrbuff)); getchar(); getchar(); ret = write(fd, wrbuff, strlen(wrbuff)); getchar(); getchar(); close(fd); return 0; }
Welcome to my BlogWelcome to my Blog

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