source:
CIVL/examples/library/string/memcpy_multi_dim_one.c@
afc300c
| Last change on this file since afc300c was 7a770ca, checked in by , 9 years ago | |
|---|---|
|
|
| File size: 122 bytes | |
| Line | |
|---|---|
| 1 | #include <string.h> |
| 2 | |
| 3 | int main() { |
| 4 | |
| 5 | int a[1][1]; |
| 6 | int b[1][1] = {1}; |
| 7 | |
| 8 | memcpy(a, &b[0][0], sizeof(int)); |
| 9 | return 0; |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
