Ignore:
Timestamp:
06/22/12 15:38:56 (13 years ago)
Author:
Mathieu Morlighem
Message:

Starting to replace _printf by _pprintString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/io/PrintfFunction.cpp

    r12511 r12512  
    2929                /* Try to print in the allocated space. */
    3030                va_start(args, format);
    31 #ifndef WIN32
    3231                n=vsnprintf(buffer,size,format,args);
    33 #else
    34                 n=vsnprintf(buffer,size,format,args);
    35 #endif
    3632                va_end(args);
    3733
     
    5551        return 1;
    5652}
     53int 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.