Skip to content
Snippets Groups Projects
Select Git revision
  • fdd023ef684d62b2f76f0ab5ebcffda19d982a21
  • master default protected
  • cvh
  • main
4 results

gpu.Dockerfile

Blame
  • string-ops-6.c 438 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));
    
      if (anton == anton)
        printf ("gleich\n");
      else
        printf ("ungleich\n");
    /*
      char buffer[100] = "Huber ";
      strcat (buffer, anton);
      printf ("%s\n", buffer);
    */
    
      return 0;
    }