# 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
```none
  PetscConcat(hello,there) -> hellothere

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





## See Also
 `PetscStringize()`, `PetscExpand()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmacros.h.html#PetscConcat">include/petscmacros.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmacros.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
