From eafbef38d19eb3cf33636181811af1822eaa979c Mon Sep 17 00:00:00 2001 From: Jack Hughes Date: Tue, 12 Jun 2018 10:24:05 +0100 Subject: [PATCH] Changed SNIPPET.txt to be a small standalone program --- docs/SNIPPET.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/SNIPPET.txt b/docs/SNIPPET.txt index b232cff49..416afd988 100644 --- a/docs/SNIPPET.txt +++ b/docs/SNIPPET.txt @@ -1,6 +1,9 @@ -#include "hello_world.h" +#include + +int main(int argc, char* argv[]) { + + for (int i = 1; i <= 5; i++) { + printf("Hello, World!\n"); + } -const char *hello(void) -{ - return "Hello, World!"; }