rgbled/sketch/snippet/snippet1.c
2019-04-30 11:14:25 +00:00

13 lines
200 B
C

#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");
}
}