repo.or.cz
/
tangerine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git]
/
workbench
/
libs
/
codesetslib
/
developer
/
examples
/
autoopen.c
blob
279426a0063521ce3a2fbb7cefe31722b760dd5c
1
#include <libraries/codesets.h>
2
#include <proto/codesets.h>
3
4
#include <stdio.h>
5
6
int
main
()
7
{
8
struct
codeset
*
cs
;
9
10
if
(!
CodesetsBase
) {
11
printf
(
"Autoopen failed!
\n
"
);
12
return
1
;
13
}
14
cs
=
CodesetsFindA
(
NULL
,
NULL
);
15
16
if
(
cs
)
17
printf
(
"Default codeset for your system is %s
\n
"
,
cs
->
name
);
18
else
19
printf
(
"Unable to query default codeset
\n
"
);
20
return
0
;
21
}