ホーム/2008-06-05

ホーム/2008-06-05

1
2
3
4
5
6
7
8
int *a = (int*)buff1;
int *b = (int*)buff2;

for (...) {
    for (...) {
       memcpy(a, b, sizeof(int)); // What?
    }
}

素直にこうしましょう。

1
*a = *b
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy