author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Fri, 27 Dec 2013 16:00:09 +0100 | |
changeset 167 | 7c6b221900bf |
parent 77 | 49e0babccb23 |
permissions | -rw-r--r-- |
0 | 1 |
/** |
77 | 2 |
* tokenpasting.c |
9
c3fecc82ade6
standard tags for git projects
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
3 |
* Copyright (C) 2008 Markus Broeker |
0 | 4 |
*/ |
5 |
||
6 |
#include <stdio.h> |
|
7 |
#include <stdlib.h> |
|
8 |
||
9 |
#define a(a,b) { tsb.fd##a = b; } |
|
10 |
||
11 |
struct { |
|
12 |
int fd1; |
|
13 |
int fd2; |
|
14 |
int fd3; |
|
15 |
} tsb; |
|
16 |
||
17 |
int main (int argc, char **argv) |
|
18 |
{ |
|
19 |
a (1, 10); |
|
20 |
a (2, 20); |
|
21 |
a (3, 30); |
|
22 |
||
23 |
printf ("1=[%d] 2=[%d] 3=[%d]\n", tsb.fd1, tsb.fd2, tsb.fd3); |
|
24 |
||
25 |
return EXIT_SUCCESS; |
|
26 |
} |