dockapps/wmweather+-2.12/subst.h
Carlos R. Mafra 21625f40b5 Initial dockapps git repo
I tried to get the latest versions from dockapps.org, but I haven't
tested any of them.

More dockapps will be added as time permits.
2011-03-25 19:45:13 +01:00

24 lines
663 B
C

#ifndef SUBST_H
#define SUBST_H
struct subst_val {
char id; /* if id=='X', %X will be substituted */
enum {
INT ='i', /* val => signed int */
UINT ='u', /* val => unsigned int */
OCTAL ='o', /* val => unsigned int */
HEX ='x', /* val => unsigned int */
FLOAT_E ='e', /* val => double */
FLOAT_F ='f', /* val => double */
FLOAT_G ='g', /* val => double */
FLOAT_A ='a', /* val => double */
CHAR ='c', /* val => char */
STRING ='s' /* val => char * */
} type;
void *val;
};
char *subst(const char *s, struct subst_val *substitutes);
#endif