PETSc version 3.17.0
Fix/Edit manual page

PetscConcat

Concatenate two tokens

Synopsis

#include <petscmacros.h>
<macro-expansion> PetscConcat(x, y)

Input Parameters

x - First token
y - Second token

Notes

Not available from Fortran.

PetscConcat() will expand both arguments before pasting them together, use PetscConcat_() if you don't want to expand them.

Example usage

  PetscConcat(hello,there) -> hellothere

  #define HELLO hello
  PetscConcat(HELLO,there)  -> hellothere
  PetscConcat_(HELLO,there) -> HELLOthere

See Also

PetscStringize(), PetscExpand()

Level

beginner

Location

include/petscmacros.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages