repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tcc
/
21_char_array.c
blob
fd5fa329f8c2357f1c7e7f0de83759ebf443631e
1
#include <stdio.h>
2
3
int
main
()
4
{
5
int
x
=
'a'
;
6
char
y
=
x
;
7
8
const char
*
a
=
"hello"
;
9
10
printf
(
"%s
\n
"
,
a
);
11
12
int
c
;
13
c
= *
a
;
14
15
const char
*
b
;
16
for
(
b
=
a
; *
b
!=
0
;
b
++)
17
printf
(
"%c: %d
\n
"
, *
b
, *
b
);
18
19
char
destarray
[
10
];
20
char
*
dest
= &
destarray
[
0
];
21
const char
*
src
=
a
;
22
23
while
(*
src
!=
0
)
24
*
dest
++ = *
src
++;
25
26
*
dest
=
0
;
27
28
printf
(
"copied string is %s
\n
"
,
destarray
);
29
30
return
0
;
31
}
32
33
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/