learning-cc4e

Solution to https://cc4e.com/. If you copy these you're not right in the head.
git clone https://kaka.farm/~git/learning-cc4e
Log | Files | Refs

main.c (289B)


      1 #include <stdio.h>
      2 int main() {
      3   char t[1000];
      4   void expand();
      5   expand("Hello world", t);
      6   printf("%s\n", t);
      7   expand("Hello world\n", t);
      8   printf("%s\n", t);
      9   expand("Hello\tworld\n", t);
     10   printf("%s\n", t);
     11   expand("Hello\tworld\nHave a nice\tday\n", t);
     12   printf("%s\n", t);
     13 }