source:
CIVL/mods/dev.civl.com/examples/opencl/2.14/strcmp.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 195 bytes | |
| Rev | Line | |
|---|---|---|
| [4da0a7b] | 1 | #include <string.h> |
| 2 | #include <stdio.h> | |
| 3 | ||
| 4 | ||
| 5 | int main(int argc, char** argv) | |
| 6 | { | |
| 7 | char * first = "abcd"; | |
| 8 | char * second = "abcd"; | |
| 9 | ||
| 10 | int x = strcmp(first, second); | |
| 11 | printf("%d", x); | |
| 12 | return 0; | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
