rgbled/sketch/snippet/snippet1.c

13 lines
200 B
C
Raw Permalink Normal View History

2019-04-05 21:40:26 +02:00
#include <stdio.h>
#include <string.h>
int main() {
char text1[15] = "Wolfgang/11";
char text2[15] = "Wolfgang";
if (0 == strncmp(text1, text2, strlen(text2))) {
printf("match\n");
}
}