change structure continued
This commit is contained in:
BIN
sketch/snippet/snippet1
Executable file
BIN
sketch/snippet/snippet1
Executable file
Binary file not shown.
12
sketch/snippet/snippet1.c
Normal file
12
sketch/snippet/snippet1.c
Normal file
@ -0,0 +1,12 @@
|
||||
#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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user