Home
last modified time | relevance | path

Searched refs:inputfile (Results 1 – 2 of 2) sorted by relevance

/net-tools-latest/libcoap/examples/
Dclient.c914 FILE *inputfile = NULL; in cmdline_input_from_file() local
928 inputfile = stdin; in cmdline_input_from_file()
941 inputfile = fopen(filename, "r"); in cmdline_input_from_file()
942 if ( !inputfile ) { in cmdline_input_from_file()
949 len = fread(buf->s, 1, buf->length, inputfile); in cmdline_input_from_file()
952 if (ferror(inputfile) != 0) { in cmdline_input_from_file()
963 if (inputfile != stdin) in cmdline_input_from_file()
964 fclose(inputfile); in cmdline_input_from_file()
Detsi_iot_01.c501 FILE *inputfile = NULL; in make_large() local
517 inputfile = fopen(filename, "r"); in make_large()
518 if ( !inputfile ) { in make_large()
524 payload->length = fread(payload->data, 1, statbuf.st_size, inputfile); in make_large()
527 fclose(inputfile); in make_large()