Hi i try to print char as positive value.I write :
char ch = 212;
printf("%u",ch);
but I get:
4294967252
How I can get 212 in output?
Thanks.
Declare your ch
as
unsigned char ch = 212 ;
And your printf will work.
1简介编辑
I/O vector,与readv和wirtev操作相关的结构体。
2所在头文件编辑
#include <sys/uio.h>
/* Structure for scatter/gather I/O. */
struct iovec
{
void *iov_base; /* Pointer to data. */
size_t iov_len; /* Length of data. */
};