Skip to content
Snippets Groups Projects
Select Git revision
  • e48924b57cd3dd2afba7122942909b21f332715f
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

string-ops-9.c

Blame
  • Forked from Peter Gerwinski / hp
    286 commits behind the upstream repository.
    string-ops-9.c 261 B
    #include <stdio.h>
    #include <string.h>
    
    int main (void)
    {
      char *anton = "Anton";
      char *zacharias1 = "Zacharias";
      char *zacharias2 = "zacharias";
    
      printf ("%d\n", strcmp (anton, zacharias1));
      printf ("%d\n", strcmp (anton, zacharias2));
    
      return 0;
    }