summaryrefslogtreecommitdiff
path: root/Base/home/anon/little/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-18 19:01:50 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-18 19:01:50 +0100
commit7b3f1218be3e333c955e867ceed4652eadbaffd1 (patch)
tree580df0b76ca634ba1c0dd8f783a2567541abad63 /Base/home/anon/little/main.cpp
parent0e9e70ca4fe1ab1fafd7b403da7cc0c6a8d65954 (diff)
downloadserenity-7b3f1218be3e333c955e867ceed4652eadbaffd1.zip
little: Make this build by default, and add some curlies
Diffstat (limited to 'Base/home/anon/little/main.cpp')
-rw-r--r--Base/home/anon/little/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Base/home/anon/little/main.cpp b/Base/home/anon/little/main.cpp
index 87912293ca..3cd4932ea5 100644
--- a/Base/home/anon/little/main.cpp
+++ b/Base/home/anon/little/main.cpp
@@ -1,9 +1,12 @@
#include <stdio.h>
+#include <sys/stat.h>
int main(int, char**)
{
- // This is a comment :^)
- printf("Hello friends!\n");
- mkdir("/tmp/xyz", 0755);
+ for (int i = 0; i < 3; ++i) {
+ // This is a comment :^)
+ printf("Hello friends!\n");
+ mkdir("/tmp/xyz", 0755);
+ }
return 0;
}