function libbenchmark_pal_print_string

Revision as of 19:19, 28 May 2016 by Admin (talk | contribs) (Admin moved page 7.1.0:function libbenchmark pal print string to r7.1.0:Function libbenchmark pal print string without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

        │   └───libbenchmark
        │           libbenchmark_porting_abstraction_layer.h


void libbenchmark_pal_print_string( char const * const string );


char const * const string

A string emitted by libbenchmark.

Return Value

No return value.


void libbenchmark_pal_print_string( char const * const string )
  LFDS710_PAL_ASSERT( string != NULL );

  printf( "%s", string );

  fflush( stdout );



The benchmarksuite can take a considerable time to complete. As such, libbenchmark emits results as they are generated in the form of strings. Note such strings as often not newline terminated, and so buffered outputs will need to flush. Platforms vary in how they can (or cannot) display strings. As such, the library calls this function. The abstraction layer is then free to act as it will. On hosted user-mode implementations, the string is emitted to stdout.

See Also