PetscSNPrintf#
Prints to a string of given length
Synopsis#
PetscErrorCode PetscSNPrintf(char *str, size_t len, const char format[], ...)
Not Collective
Input Parameters#
str - the string to print to
len - the length of str
format - the usual printf() format string
… - any arguments that are to be printed, each much have an appropriate symbol in the format argument
See Also#
PetscSynchronizedFlush()
, PetscSynchronizedFPrintf()
, PetscFPrintf()
, PetscVSNPrintf()
,
PetscPrintf()
, PetscViewerASCIIPrintf()
, PetscViewerASCIISynchronizedPrintf()
, PetscVFPrintf()
Level#
intermediate
Location#
Examples#
src/vec/is/sf/tutorials/ex1.c.html
src/dm/impls/plex/tutorials/ex10.c.html
src/dm/impls/stag/tutorials/ex6.c.html
src/dm/tutorials/ex21.c.html
src/dm/tutorials/swarm_ex1.c.html
src/dm/tutorials/swarm_ex3.c.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex49.c.html
src/ksp/ksp/tutorials/ex56.c.html
src/ksp/ksp/tutorials/ex70.c.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages