#include <stdio.h>
#include <string.h>
#include <gpxe/cpio.h>
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | cpio_set_field (char *field, unsigned long value) |
| Set field within a CPIO header. | |
Definition in file cpio.c.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void cpio_set_field | ( | char * | field, | |
| unsigned long | value | |||
| ) |
Set field within a CPIO header.
| field | Field within CPIO header | |
| value | Value to set |
Definition at line 37 of file cpio.c.
References memcpy, and snprintf().
Referenced by bzimage_load_initrd().
00037 { 00038 char buf[9]; 00039 00040 snprintf ( buf, sizeof ( buf ), "%08lx", value ); 00041 memcpy ( field, buf, 8 ); 00042 }
1.5.7.1