1
我想寫整數1到第一個字節和0x35到文件描述符的第二個字節使用寫(http://linux.about.com/library/cmd/blcmdl2_write.htm),但我得到以下警告當我嘗試以下操作:使用寫入將整數寫入文件描述符?
write(fd, 1, 1);
write(fd, 0x35, 1);
source.c:29: warning: passing argument 2 of ‘write’ makes pointer from integer without a cast
source.c:30: warning: passing argument 2 of ‘write’ makes pointer from integer without a cast