Skip to content
Snippets Groups Projects
Select Git revision
  • ef874d44256d2b3d57c0a4c5a4f058b57ee3f895
  • 2022ws default protected
  • MPeth-2022ws-patch-01682
  • 2021ws
  • 2020ws
  • 2019ws
  • 2019ss
  • 2018ws
  • 2017ws
  • 2017ss
  • 2016ws
  • 2016ss
  • 2015ss
13 results

projekte.txt

Blame
  • Forked from Peter Gerwinski / es
    Source project has a limited visibility.
    aufgabe-3.c 240 B
    #include <string.h>
    
    int fun_1 (char *s)
    {
      int x = 0;
      for (int i = 0; i < strlen (s); i++)
        x += s[i];
      return x;
    }
    
    int fun_2 (char *s)
    {
      int i = 0, x = 0;
      int len = strlen (s);
      while (i < len)
        x += s[i++];
      return x;
    }