Changeset 12512 for issm/trunk-jpl/src/c/io/PrintfFunction.cpp
- Timestamp:
- 06/22/12 15:38:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/io/PrintfFunction.cpp
r12511 r12512 29 29 /* Try to print in the allocated space. */ 30 30 va_start(args, format); 31 #ifndef WIN3232 31 n=vsnprintf(buffer,size,format,args); 33 #else34 n=vsnprintf(buffer,size,format,args);35 #endif36 32 va_end(args); 37 33 … … 55 51 return 1; 56 52 } 53 int PrintfFunction(const string & message){ 54 extern int my_rank; 55 if(my_rank==0){ 56 printf("%s\n",message.c_str()); 57 } 58 }
Note:
See TracChangeset
for help on using the changeset viewer.