Projet

Général

Profil

Révision 6dec8c33

ID6dec8c33578bc22d925b64fa02626fe75229ce58
Parent c86e4ab2
Enfant 339bfec6

Ajouté par Steve Schnepp il y a plus de 10 ans

multicpu1sec-c: opening the file r/w to truncate it

Voir les différences:

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