HPCToolkit
token-iter.h File Reference
#include <string.h>
Include dependency graph for token-iter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Token_iterate(tok, s, delim, b)
 

Macro Definition Documentation

◆ Token_iterate

#define Token_iterate (   tok,
  s,
  delim,
 
)
Value:
{ \
char* _last; \
if (s) { \
char _tmp[strlen(s)+1]; \
strcpy(_tmp, s); \
for(char* tok=strtok_r(_tmp, delim, &_last); tok; tok=strtok_r(NULL, delim, &_last)) b \
} \
}
#define NULL
Definition: ElfHelper.cpp:85

Definition at line 4 of file token-iter.h.