
15/03/2005, 12:52
|
 | | | Fecha de Ingreso: mayo-2004 Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años, 10 meses Puntos: 74 | |
Lee 2 bytes y muestra el valor en hexadecimal:
Código:
int y = 0;
read(arch, &y, 2);
printf("0x%X\r\n", y);
Código:
int y = 0;
fread(&y, 2, 1, stream);
printf("0x%X\r\n", y);
__________________ ¡Peron cumple, Evita dignifica! VIVA PERON CARAJO |