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

gtk-5.c

  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    string-ops-7.c 466 B
    #include <stdio.h>
    #include <string.h>
    
    int main (void)
    {
      char *anton = "Anton";
      char *zacharias = "Zacharias";
    
      printf ("%d\n", strcmp (anton, zacharias));
      printf ("%d\n", strcmp (zacharias, anton));
      printf ("%d\n", strcmp (anton, anton));
    
      char anton2[] = "Anton";
      if (anton == anton2)
        printf ("gleich\n");
      else
        printf ("ungleich\n");
    /*
      char buffer[100] = "Huber ";
      strcat (buffer, anton);
      printf ("%s\n", buffer);
    */
    
      return 0;
    }