⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libcgi_general.3

📁 c语言cgi库,可以实现用C语言实现CGI脚本
💻 3
字号:
.TH "General purpose" 3 "13 Mar 2003" "LibCGI" \" -*- nroff -*-.ad l.nh.SH NAMEGeneral purpose \- .SS "Functions".in +1c.ti -1c.RI "char * \fBhtmlentities\fP (const char *str)".br.RI "\fITransforms HTML special chars.\fP".ti -1c.RI "char ** \fBfile\fP (const char *filename, unsigned int *total)".br.RI "\fIReads entire file into an array.\fP".ti -1c.RI "char * \fBmd5\fP (const char *str)".br.RI "\fIConverts a string to MD5 format.\fP".in -1c.SH "Function Documentation".PP .SS "char** file (const char * filename, unsigned int * total)".PPReads entire file into an array.\fBParameters:\fP.RS 4\fIfilename\fP Filename to open .br\fItotal\fP Integer variable passed as reference, which will store the total of items .RE.PP\fBReturns:\fP.RS 4Returns the file in an array. Each element of the array corresponds to a line in the file..RE.PP.PP.nf char **lines; unsigned int total, i;   lines = file('filename.ext', &total);     printf('Total of lines: %u\n', total);     for (i = 0; i < total; i++)        printf('[%u] %s\n', i, lines[i]);      for (i = 0; i < total; i++) {        if (lines[i])                 free(lines[i]); } .PP.SS "char* htmlentities (const char * str)".PPTransforms HTML special chars.Transforms chars like '<', '>' and others in HTML form, like '&lt' and '&gt' .PP\fBParameters:\fP.RS 4\fIstr\fP String containing code to parse .RE.PP\fBReturns:\fP.RS 4The new string .RE.PP\fBAuthor:\fP.RS 4Robert Csok <rcsok@gmx.de> .RE.PP.SS "char* md5 (const char * str)".PPConverts a string to MD5 format.\fBAuthor:\fP.RS 4Diogo Gonzaga .RE.PP\fBParameters:\fP.RS 4\fIstr\fP String to convert to MD5 hash .RE.PP\fBReturns:\fP.RS 4MD5 hash code .RE.PP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -