add_bit.c | add_bit.c | |||
---|---|---|---|---|
/* Add a BIT field */ | /* Add a BIT field */ | |||
#include "test.h" | #include "test.h" | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
#include <fcntl.h> | #include <fcntl.h> | |||
#include <string.h> | #include <string.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <unistd.h> | ||||
int main(void) | int main(void) | |||
{ | { | |||
const char* filedir = __TEST__ "dirfile"; | const char* filedir = __TEST__ "dirfile"; | |||
const char* format = __TEST__ "dirfile/format"; | const char* format = __TEST__ "dirfile/format"; | |||
int error, r = 0; | int error, r = 0; | |||
gd_entry_t e; | gd_entry_t e; | |||
DIRFILE* D = gd_open(filedir, GD_RDWR | GD_CREAT | GD_VERBOSE); | DIRFILE* D = gd_open(filedir, GD_RDWR | GD_CREAT | GD_VERBOSE); | |||
gd_add_bit(D, "new", "input", 1, 1, 0); | gd_add_bit(D, "new", "input", 1, 1, 0); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |