mirror of
https://github.com/fumiama/fumidb.git
synced 2026-06-06 17:20:33 +08:00
13 lines
227 B
C
13 lines
227 B
C
#include "../src/binary.h"
|
|
|
|
int main() {
|
|
char buf[8];
|
|
putle16(buf, 1);
|
|
if(buf[0] != 1) return 1;
|
|
putle32(buf, 2);
|
|
if(buf[0] != 2) return 2;
|
|
putle64(buf, 3);
|
|
if(buf[0] != 3) return 3;
|
|
return 0;
|
|
}
|