Search:
Login
Help/Guide
About Trac
Preferences
Register
Forgot your password?
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
Back to Ticket #1646
Ticket #1646
: tls-test.cpp
File tls-test.cpp,
203 bytes
(added by
kaoutsis
,
17 years ago
)
a test to see what tls_get() returns for an unknown key on beos
Line
1
#include
<stdio.h>
2
3
#include
<TLS.h>
4
5
6
int
7
main
()
8
{
9
void
*
void_pt
=
NULL
;
10
if
(
void_pt
==
tls_get
(
23
))
11
printf
(
"tls_get returns null
\n
"
);
12
else
13
printf
(
"tls_get doesn't return null
\n
"
);
14
15
return
0
;
16
}
Download in other formats:
Original Format