Changeset 682 for trunk/zoo-project/zoo-kernel/service.c
- Timestamp:
- Jun 26, 2015, 2:07:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.c
r680 r682 87 87 * @param file_path the full path to the file name to store the map 88 88 */ 89 void dumpMapsToFile(maps* m,char* file_path ){89 void dumpMapsToFile(maps* m,char* file_path,int limit){ 90 90 FILE* file=fopen(file_path,"w+"); 91 91 maps* tmp=m; 92 int cnt=0; 92 93 while(tmp!=NULL){ 93 94 fprintf(file,"[%s]\n",tmp->name); … … 95 96 fflush(file); 96 97 tmp=tmp->next; 98 cnt++; 99 if(limit>=0 && cnt==limit) 100 tmp=NULL; 97 101 } 98 102 fflush(file);
Note: See TracChangeset
for help on using the changeset viewer.