Lines Matching refs:fp
30 FILE *fp = fopen(path, "w+");
31 if (!fp) {
35 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
40 int result = fseeko(fp, 0L, SEEK_SET);
41 char ch = fgetc(fp);
49 fclose(fp);
60 FILE *fp = fopen(path, "w+");
61 if (!fp) {
65 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
70 int result = fseeko(fp, 8L, SEEK_SET);
71 char ch = fgetc(fp);
79 fclose(fp);
90 FILE *fp = fopen(path, "w+");
91 if (!fp) {
95 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
100 int code = fseeko(fp, 10L, SEEK_SET);
105 int data = fseeko(fp, 0L, SEEK_CUR);
110 char ch = fgetc(fp);
115 fclose(fp);
126 FILE *fp = fopen(path, "w+");
127 if (!fp) {
131 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
136 int result = fseeko(fp, -1L, SEEK_END);
137 char ch = fgetc(fp);
145 fclose(fp);
156 FILE *fp = fopen(path, "w+");
157 if (!fp) {
161 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
166 int result = fseeko(fp, -10L, SEEK_SET);
171 fclose(fp);
182 FILE *fp = fopen(path, "w+");
183 if (!fp) {
187 size_t ret = fwrite(wrstring, sizeof(char), strlen(wrstring), fp);
192 int result = fseeko(fp, 10L, SEEK_END);
197 fclose(fp);