📄 atob.htm
字号:
<title>The atob Library Function</title><h1 align=center>The atob Library Function</h1></dl><h2>NAME</h2><dl><dd> atob, btoa - binary/ASCII conversion routines</dl><h2>SYNOPSIS</h2><dl><dd><pre>int atob (vp,p,base)char * btoa (dst,value,base)</pre></dl><h2>DESCRIPTION</h2><dl><dd> atob converts the ASCII string 'p' to binary. It places the result in vp, returning 1 on success, otherwise 0. The parameter 'base' is used to specify the expected base of the value, values of 2 through 36 are supported. If the base is specified as zero, then the base is determined from the first few characters of the string as shown below:<p> <dl><dd><table><tr><td> 0x </td><td>hex </td></tr><tr><td> 0t </td><td>decimal </td></tr><tr><td> 0 </td><td>octal </td></tr><tr><td> 0o </td><td>octal </td></tr><tr><td> 1-9 </td><td>decimal </td></tr></table></dl><p> The function btoa converts 'value' to an ASCII string occording to the 'base' specified. The result is copied into 'dst' and returned as a pointer.<p></dl><h2>FILES</h2><dl><dd><a href="../../lib/atob.c">lib/atob.c</a><br></dl><p><hr><b>Navigation:</b> <a href="../index.htm">Document Home</a> | <a href="../doctoc.htm">Document Contents</a> | <a href="../docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -