Select Git revision
string-ops-12.c
Forked from
Peter Gerwinski / hp
46 commits behind the upstream repository.
Peter Gerwinski authored
string-ops-12.c 392 B
#include <stdio.h>
#include <string.h>
int main (void)
{
char *zacharias = "Zacha";
char *anton = "Anton";
char *toni = "Toni";
printf ("%d\n", strcmp (anton, zacharias));
printf ("%d\n", strcmp (zacharias, anton));
printf ("%d\n", strcmp (anton, anton));
char buffer[] = "Huber ";
strcat (buffer, toni);
printf ("%s\n", buffer);
printf ("%s\n", anton);
return 0;
}