source:
CIVL/mods/dev.civl.com/examples/opencl/2.14/strcmp.cvl@
bc0fbae
| Last change on this file since bc0fbae was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 195 bytes | |
| Line | |
|---|---|
| 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.
