Skip to content
Snippets Groups Projects
Select Git revision
  • 47fbe2beac25a805511f2dca459d67e1e6859c88
  • master default
2 results

params-1.c

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    loesung-1-e-2.c 176 B
    #include <stdio.h>
    
    int fun_4 (char *s)
    {
      int x = 0;
      while (*s)
        x += *s++;
      return x;
    }
    
    int main (void)
    {
      printf ("%d\n", fun_4 ("Hello, world!\n"));
      return 0;
    }