home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: node13_ct.html
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 43 6f | 6e 6e 65 63 74 69 6e 67 |ts of Co|nnecting|
|000000b0| 20 53 63 68 65 6d 65 20 | 61 6e 64 20 43 20 76 61 | Scheme |and C va|
|000000c0| 72 69 61 62 6c 65 73 3c | 2f 54 49 54 4c 45 3e 0a |riables<|/TITLE>.|
|000000d0| 0a 3c 4d 45 54 41 20 48 | 54 54 50 2d 45 51 55 49 |.<META H|TTP-EQUI|
|000000e0| 56 3d 22 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 22 |V="Conte|nt-Type"|
|000000f0| 20 43 4f 4e 54 45 4e 54 | 3d 22 74 65 78 74 2f 68 | CONTENT|="text/h|
|00000100| 74 6d 6c 3b 20 63 68 61 | 72 73 65 74 3d 75 74 66 |tml; cha|rset=utf|
|00000110| 2d 38 22 3e 0a 3c 4d 45 | 54 41 20 4e 41 4d 45 3d |-8">.<ME|TA NAME=|
|00000120| 22 76 69 65 77 70 6f 72 | 74 22 20 43 4f 4e 54 45 |"viewpor|t" CONTE|
|00000130| 4e 54 3d 22 77 69 64 74 | 68 3d 64 65 76 69 63 65 |NT="widt|h=device|
|00000140| 2d 77 69 64 74 68 2c 20 | 69 6e 69 74 69 61 6c 2d |-width, |initial-|
|00000150| 73 63 61 6c 65 3d 31 2e | 30 22 3e 0a 3c 4d 45 54 |scale=1.|0">.<MET|
|00000160| 41 20 4e 41 4d 45 3d 22 | 47 65 6e 65 72 61 74 6f |A NAME="|Generato|
|00000170| 72 22 20 43 4f 4e 54 45 | 4e 54 3d 22 4c 61 54 65 |r" CONTE|NT="LaTe|
|00000180| 58 32 48 54 4d 4c 20 76 | 32 30 32 32 22 3e 0a 0a |X2HTML v|2022">..|
|00000190| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 53 54 59 4c 45 |<LINK RE|L="STYLE|
|000001a0| 53 48 45 45 54 22 20 48 | 52 45 46 3d 22 45 78 74 |SHEET" H|REF="Ext|
|000001b0| 65 6e 64 69 6e 67 2e 63 | 73 73 22 3e 0a 0a 3c 4c |ending.c|ss">..<L|
|000001c0| 49 4e 4b 20 52 45 4c 3d | 22 70 72 65 76 69 6f 75 |INK REL=|"previou|
|000001d0| 73 22 20 48 52 45 46 3d | 22 6e 6f 64 65 31 32 5f |s" HREF=|"node12_|
|000001e0| 6d 6e 2e 68 74 6d 6c 22 | 3e 0a 3c 4c 49 4e 4b 20 |mn.html"|>.<LINK |
|000001f0| 52 45 4c 3d 22 75 70 22 | 20 48 52 45 46 3d 22 6e |REL="up"| HREF="n|
|00000200| 6f 64 65 31 31 5f 6d 6e | 2e 68 74 6d 6c 22 3e 0a |ode11_mn|.html">.|
|00000210| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 6e 65 78 74 22 |<LINK RE|L="next"|
|00000220| 20 48 52 45 46 3d 22 6e | 6f 64 65 31 34 5f 6d 6e | HREF="n|ode14_mn|
|00000230| 2e 68 74 6d 6c 22 3e 0a | 3c 2f 48 45 41 44 3e 0a |.html">.|</HEAD>.|
|00000240| 20 0a 3c 42 4f 44 59 20 | 62 67 63 6f 6c 6f 72 3d | .<BODY |bgcolor=|
|00000250| 22 23 66 66 66 66 66 66 | 22 20 74 65 78 74 3d 22 |"#ffffff|" text="|
|00000260| 23 30 30 30 30 30 30 22 | 20 6c 69 6e 6b 3d 22 23 |#000000"| link="#|
|00000270| 39 39 34 34 45 45 22 20 | 76 6c 69 6e 6b 3d 22 23 |9944EE" |vlink="#|
|00000280| 30 30 30 30 66 66 22 20 | 61 6c 69 6e 6b 3d 22 23 |0000ff" |alink="#|
|00000290| 30 30 66 66 30 30 22 3e | 0a 0a 3c 48 32 3e 3c 41 |00ff00">|..<H2><A|
|000002a0| 20 49 44 3d 22 53 45 43 | 54 49 4f 4e 30 30 30 34 | ID="SEC|TION0004|
|000002b0| 32 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |20000000|00000000|
|000002c0| 22 3e 0a 43 6f 6e 6e 65 | 63 74 69 6e 67 20 53 63 |">.Conne|cting Sc|
|000002d0| 68 65 6d 65 20 61 6e 64 | 20 43 20 76 61 72 69 61 |heme and| C varia|
|000002e0| 62 6c 65 73 3c 2f 41 3e | 0a 3c 2f 48 32 3e 0a 0a |bles</A>|.</H2>..|
|000002f0| 3c 50 3e 0a 57 68 65 6e | 20 62 75 69 6c 64 69 6e |<P>.When| buildin|
|00000300| 67 20 61 20 73 70 65 63 | 69 61 6c 69 7a 65 64 20 |g a spec|ialized |
|00000310| 69 6e 74 65 72 70 72 65 | 74 65 72 2c 20 69 74 20 |interpre|ter, it |
|00000320| 63 6f 75 6c 64 20 62 65 | 20 75 73 65 66 75 6c 20 |could be| useful |
|00000330| 74 6f 20 68 61 76 65 20 | 61 20 76 61 72 69 61 62 |to have |a variab|
|00000340| 6c 65 0a 79 6f 75 20 63 | 61 6e 20 61 63 63 65 73 |le.you c|an acces|
|00000350| 73 20 62 6f 74 68 20 69 | 6e 20 53 63 68 65 6d 65 |s both i|n Scheme|
|00000360| 20 61 6e 20 69 6e 20 43 | 2e 20 4d 6f 64 69 66 79 | an in C|. Modify|
|00000370| 69 6e 67 20 73 75 63 68 | 20 61 20 76 61 72 69 61 |ing such| a varia|
|00000380| 62 6c 65 20 69 6e 20 43 | 20 6d 75 73 74 0a 6d 6f |ble in C| must.mo|
|00000390| 64 69 66 79 20 74 68 65 | 20 53 63 68 65 6d 65 20 |dify the| Scheme |
|000003a0| 61 73 73 6f 63 69 61 74 | 65 64 20 76 61 72 69 61 |associat|ed varia|
|000003b0| 62 6c 65 20 61 6e 64 2c | 20 73 79 6d 6d 65 74 72 |ble and,| symmetr|
|000003c0| 69 63 61 6c 6c 79 2c 20 | 6d 6f 64 69 66 79 69 6e |ically, |modifyin|
|000003d0| 67 20 69 74 20 69 6e 20 | 53 63 68 65 6d 65 0a 6d |g it in |Scheme.m|
|000003e0| 75 73 74 20 6d 6f 64 69 | 66 79 20 74 68 65 20 63 |ust modi|fy the c|
|000003f0| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 43 20 76 |orrespon|ding C v|
|00000400| 61 72 69 61 62 6c 65 2e | 20 4f 6e 65 20 77 61 79 |ariable.| One way|
|00000410| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 63 6f 6e 6e | to do t|his conn|
|00000420| 65 63 74 69 6f 6e 20 63 | 6f 6e 73 69 73 74 73 0a |ection c|onsists.|
|00000430| 74 6f 20 63 72 65 61 74 | 65 20 61 20 73 70 65 63 |to creat|e a spec|
|00000440| 69 61 6c 20 53 63 68 65 | 6d 65 20 76 61 72 69 61 |ial Sche|me varia|
|00000450| 62 6c 65 20 77 68 6f 73 | 65 20 63 6f 6e 74 65 6e |ble whos|e conten|
|00000460| 74 20 69 73 20 72 65 61 | 64 2f 77 72 69 74 74 65 |t is rea|d/writte|
|00000470| 6e 20 62 79 20 61 20 73 | 70 65 63 69 61 6c 0a 67 |n by a s|pecial.g|
|00000480| 65 74 74 65 72 2f 73 65 | 74 74 65 72 2e 20 44 65 |etter/se|tter. De|
|00000490| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 73 75 63 68 |finition| of such|
|000004a0| 20 61 20 76 61 72 69 61 | 62 6c 65 2c 20 69 73 20 | a varia|ble, is |
|000004b0| 64 6f 6e 65 20 62 79 20 | 63 61 6c 6c 69 6e 67 20 |done by |calling |
|000004c0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 0a 53 54 6b |the func|tion.STk|
|000004d0| 5f 64 65 66 69 6e 65 5f | 43 5f 76 61 72 69 61 62 |_define_|C_variab|
|000004e0| 6c 65 2e 20 54 68 65 20 | 43 20 70 72 6f 74 6f 74 |le. The |C protot|
|000004f0| 79 70 65 20 66 6f 72 20 | 74 68 69 73 20 66 75 6e |ype for |this fun|
|00000500| 63 74 69 6f 6e 20 69 73 | 0a 3c 42 52 3e 0a 3c 49 |ction is|.<BR>.<I|
|00000510| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 22 20 53 52 |MG. STY|LE="" SR|
|00000520| 43 3d 22 69 6d 67 31 35 | 2e 70 6e 67 22 0a 20 41 |C="img15|.png". A|
|00000530| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 43 6f 64 65 7d |LT="\beg|in{Code}|
|00000540| 0a 5c 62 65 67 69 6e 7b | 6c 69 73 74 69 6e 67 7d |.\begin{|listing}|
|00000550| 5b 32 30 30 5d 7b 32 7d | 0a 76 6f 69 64 20 53 54 |[200]{2}|.void ST|
|00000560| 6b 5f 64 65 66 69 6e 65 | 5f 43 5f 76 61 72 69 61 |k_define|_C_varia|
|00000570| 62 6c 65 28 63 68 61 72 | 20 2a 76 61 72 2c 0a 53 |ble(char| *var,.S|
|00000580| 43 4d 2e 2e 2e 0a 2e 2e | 2e 65 72 29 28 63 68 61 |CM......|.er)(cha|
|00000590| 72 20 2a 76 61 72 29 2c | 0a 76 6f 69 64 20 28 2a |r *var),|.void (*|
|000005a0| 73 65 74 74 65 72 29 28 | 63 68 61 72 20 2a 76 61 |setter)(|char *va|
|000005b0| 72 2c 20 53 43 4d 20 76 | 61 6c 75 65 29 29 3b 0a |r, SCM v|alue));.|
|000005c0| 5c 65 6e 64 7b 6c 69 73 | 74 69 6e 67 7d 5c 65 6e |\end{lis|ting}\en|
|000005d0| 64 7b 43 6f 64 65 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |d{Code}"|>.<BR>..|
|000005e0| 3c 50 3e 0a 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |<P>.The |followin|
|000005f0| 67 20 70 69 65 63 65 20 | 6f 66 20 63 6f 64 65 20 |g piece |of code |
|00000600| 73 68 6f 77 73 20 68 6f | 77 20 77 65 20 63 61 6e |shows ho|w we can|
|00000610| 20 63 6f 6e 6e 65 63 74 | 20 74 68 65 20 53 63 68 | connect| the Sch|
|00000620| 65 6d 65 20 76 61 72 69 | 61 62 6c 65 20 3c 54 54 |eme vari|able <TT|
|00000630| 3e 2a 65 72 72 6e 6f 2a | 3c 2f 54 54 3e 20 74 6f |>*errno*|</TT> to|
|00000640| 20 74 68 65 20 43 0a 76 | 61 72 69 61 62 6c 65 20 | the C.v|ariable |
|00000650| 3c 54 54 3e 65 72 72 6e | 6f 3c 2f 54 54 3e 3a 0a |<TT>errn|o</TT>:.|
|00000660| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000670| 20 53 54 59 4c 45 3d 22 | 22 20 53 52 43 3d 22 69 | STYLE="|" SRC="i|
|00000680| 6d 67 31 36 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg16.png|". ALT="|
|00000690| 5c 62 65 67 69 6e 7b 43 | 6f 64 65 7d 0a 5c 62 65 |\begin{C|ode}.\be|
|000006a0| 67 69 6e 7b 6c 69 73 74 | 69 6e 67 7d 5b 32 30 30 |gin{list|ing}[200|
|000006b0| 5d 7b 32 7d 0a 73 74 61 | 74 69 63 20 53 43 4d 20 |]{2}.sta|tic SCM |
|000006c0| 67 65 74 5f 65 72 72 6e | 6f 28 63 68 61 72 20 2a |get_errn|o(char *|
|000006d0| 73 29 0a 7b 0a 72 65 74 | 75 72 6e 20 53 54 6b 5f |s).{.ret|urn STk_|
|000006e0| 6d 61 6b 65 69 6e 74 65 | 67 65 72 28 28 6c 6f 6e |makeinte|ger((lon|
|000006f0| 67 29 20 65 72 72 6e 6f | 29 3b 0a 7d 0a 5c 65 6e |g) errno|);.}.\en|
|00000700| 64 7b 6c 69 73 74 69 6e | 67 7d 5c 65 6e 64 7b 43 |d{listin|g}\end{C|
|00000710| 6f 64 65 7d 22 3e 0a 3c | 42 52 3e 0a 3c 42 52 3e |ode}">.<|BR>.<BR>|
|00000720| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 22 |.<IMG. |STYLE=""|
|00000730| 20 53 52 43 3d 22 69 6d | 67 31 37 2e 70 6e 67 22 | SRC="im|g17.png"|
|00000740| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 43 6f |. ALT="\|begin{Co|
|00000750| 64 65 7d 0a 5c 62 65 67 | 69 6e 7b 6c 69 73 74 69 |de}.\beg|in{listi|
|00000760| 6e 67 7d 5b 32 30 30 5d | 7b 32 7d 0a 73 74 61 74 |ng}[200]|{2}.stat|
|00000770| 69 63 20 76 6f 69 64 20 | 73 65 74 5f 65 72 72 6e |ic void |set_errn|
|00000780| 6f 28 63 68 61 72 20 2a | 73 2c 20 53 43 4d 20 76 |o(char *|s, SCM v|
|00000790| 61 6c 75 65 29 0a 7b 2e | 2e 2e 0a 2e 2e 2e 28 27 |alue).{.|......('|
|000007a0| 27 73 65 74 74 69 6e 67 | 20 2a 65 72 72 6e 6f 2a |'setting| *errno*|
|000007b0| 3a 20 62 61 64 20 69 6e | 74 65 67 65 72 27 27 2c |: bad in|teger'',|
|000007c0| 20 76 61 6c 75 65 29 3b | 0a 65 72 72 6e 6f 20 3d | value);|.errno =|
|000007d0| 20 6e 3b 0a 7d 0a 5c 65 | 6e 64 7b 6c 69 73 74 69 | n;.}.\e|nd{listi|
|000007e0| 6e 67 7d 5c 65 6e 64 7b | 43 6f 64 65 7d 22 3e 0a |ng}\end{|Code}">.|
|000007f0| 3c 42 52 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |<BR>.<BR|>.<IMG. |
|00000800| 20 53 54 59 4c 45 3d 22 | 22 20 53 52 43 3d 22 69 | STYLE="|" SRC="i|
|00000810| 6d 67 31 38 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg18.png|". ALT="|
|00000820| 5c 62 65 67 69 6e 7b 43 | 6f 64 65 7d 0a 5c 62 65 |\begin{C|ode}.\be|
|00000830| 67 69 6e 7b 6c 69 73 74 | 69 6e 67 7d 5b 32 30 30 |gin{list|ing}[200|
|00000840| 5d 7b 32 7d 0a 7b 0a 2e | 2e 2e 0a 53 54 6b 5f 64 |]{2}.{..|...STk_d|
|00000850| 65 66 69 6e 65 5f 43 5f | 76 61 72 69 61 62 6c 65 |efine_C_|variable|
|00000860| 28 27 27 2a 65 72 72 6e | 6f 2a 27 27 2c 20 67 65 |(''*errn|o*'', ge|
|00000870| 74 5f 65 72 72 6e 6f 2c | 20 73 65 74 5f 65 72 72 |t_errno,| set_err|
|00000880| 6e 6f 29 3b 0a 2e 2e 2e | 0a 7d 0a 5c 65 6e 64 7b |no);....|.}.\end{|
|00000890| 6c 69 73 74 69 6e 67 7d | 5c 65 6e 64 7b 43 6f 64 |listing}|\end{Cod|
|000008a0| 65 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 41 |e}">.<BR|>..<P>.A|
|000008b0| 66 74 65 72 20 74 68 69 | 73 20 63 61 6c 6c 20 74 |fter thi|s call t|
|000008c0| 6f 20 3c 54 54 3e 53 54 | 6b 5f 64 65 66 69 6e 65 |o <TT>ST|k_define|
|000008d0| 5f 43 5f 76 61 72 69 61 | 62 6c 65 3c 2f 54 54 3e |_C_varia|ble</TT>|
|000008e0| 2c 20 72 65 61 64 69 6e | 67 20 28 3c 45 4d 3e 72 |, readin|g (<EM>r|
|000008f0| 65 73 70 3c 2f 45 4d 3e | 2e 20 77 72 69 74 69 6e |esp</EM>|. writin|
|00000900| 67 29 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |g) the v|alue of |
|00000910| 74 68 65 20 3c 54 54 3e | 2a 65 72 72 6e 6f 2a 3c |the <TT>|*errno*<|
|00000920| 2f 54 54 3e 20 53 63 68 | 65 6d 65 20 76 61 72 69 |/TT> Sch|eme vari|
|00000930| 61 62 6c 65 20 63 61 6c | 6c 73 20 74 68 65 0a 3c |able cal|ls the.<|
|00000940| 54 54 3e 67 65 74 5f 65 | 72 72 6e 6f 3c 2f 54 54 |TT>get_e|rrno</TT|
|00000950| 3e 20 28 3c 45 4d 3e 72 | 65 73 70 3c 2f 45 4d 3e |> (<EM>r|esp</EM>|
|00000960| 2e 20 3c 54 54 3e 73 65 | 74 5f 65 72 72 6e 6f 3c |. <TT>se|t_errno<|
|00000970| 2f 54 54 3e 29 20 43 20 | 66 75 6e 63 74 69 6f 6e |/TT>) C |function|
|00000980| 2e 0a 0a 3c 50 3e 0a 0a | 3c 48 52 3e 0a 0a 3c 2f |...<P>..|<HR>..</|
|00000990| 42 4f 44 59 3e 0a 3c 2f | 48 54 4d 4c 3e 0a |BODY>.</|HTML>. |
+--------+-------------------------+-------------------------+--------+--------+