repo.or.cz
/
geda-gaf
/
berndj.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use new text accessors.
[geda-gaf/berndj.git]
/
libgeda
/
tests
/
attribnamevalue.c
blob
a2536f3851668f92832a6f7324d937c6b7df4472
1
#include
"config.h"
2
3
#include <glib.h>
4
#include <libguile.h>
5
#include <stdio.h>
6
7
#include
"defines.h"
8
#include
"struct.h"
9
#include
"prototype.h"
10
11
int
main
(
int
argc
,
char
*
argv
[])
12
{
13
int
i
,
argno
;
14
char
*
name
, *
value
;
15
16
for
(
i
=
1
;
i
<
argc
;
i
++) {
17
if
(
o_attrib_get_name_value
(
argv
[
i
], &
name
, &
value
)) {
18
printf
(
"%s=%s
\n
"
,
name
,
value
);
19
g_free
(
name
);
20
g_free
(
value
);
21
}
else
{
22
printf
(
"NO_ATTRIB
\n
"
);
23
}
24
}
25
26
return
0
;
27
}