Révision 6dec8c33
multicpu1sec-c: opening the file r/w to truncate it
| plugins/system/multicpu1sec/multicpu1sec-c.c | ||
|---|---|---|
| 126 | 126 |
|
| 127 | 127 |
int fetch() {
|
| 128 | 128 |
printf("fetch()\n");
|
| 129 |
FILE* cache_file = fopen(cache_filename, "r"); |
|
| 129 |
FILE* cache_file = fopen(cache_filename, "r+");
|
|
| 130 | 130 |
|
| 131 | 131 |
/* cat the cache_file to stdout */ |
| 132 | 132 |
char buffer[1024]; |
Formats disponibles : Unified diff