gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...] [-mmachine-option...] [-o outfile] infile... |
Description: Converts DOS <-> Unix text files, alias tofromdos DOS text files traditionally have CR/LF (carriage return/line feed) pairs as their new line delimiters while Unix text files traditionally have LFs (line feeds) to terminate each line. . Tofrodos comprises one program, "fromdos" alias "todos", which converts text files to and from these formats. Use "fromdos" to convert DOS text files to the Unix format, and "todos" to convert Unix text files to the DOS format. . This functionality is also available via the dos2unix/unix2dos symlinks. . Homepage: http://www.thefreecountry.com/tofrodos/index.shtml |
Description: C language source code formatting program The `indent' program changes the appearance of a C program by inserting or deleting whitespace. . `indent' also provides options for controlling the alignment of braces and declarations, program indenting, and other stylistic parameters, including formatting of both C and C++ comments. |
#include #include #include int main(int argc, char **argv) { int port = 0; printf("program begin/n"); if (argc != 3) { printf("程序参数个数不对!正确输入方法如下:/n%s ip-address port/n", argv[0]); exit(0); } if(atoi(argv[2]) <0 || atoi(argv[2]) > 65535) {printf("端口输入不对!应该是0-65535的值。程序取默认值3456/n"); port = 3456;} else port = atoi(argv[2]); printf("命令如下:%s %s %d/n", argv[0], argv[1], port); return 0; } |
#include #include #include int main (int argc, char **argv) { int port = 0; printf ("program begin/n"); if (argc != 3) { printf ("程序参数个数不对!正确输入方法如下:/n%s ip-address port/n", argv[0]); exit (0); } if (atoi (argv[2]) < 0 || atoi (argv[2]) > 65535) { printf ("端口输入不对!应该是0-65535的值。程序取默认值3456/n"); port = 3456; } else port = atoi (argv[2]); printf ("命令如下:%s %s %d/n", argv[0], argv[1], port); return 0; } |
#include #include #include int main(int argc, char **argv) { int port = 0; printf("program begin/n"); if (argc != 3) { printf ("程序参数个数不对!正确输入方法如下:/n%s ip-address port/n", argv[0]); exit(0); } if (atoi(argv[2]) < 0 || atoi(argv[2]) > 65535) { printf ("端口输入不对!应该是0-65535的值。程序取默认值3456/n"); port = 3456; } else port = atoi(argv[2]); printf("命令如下:%s %s %d/n", argv[0], argv[1], port); return 0; } |
这个命令就会把源代码编译产生的可执行程序里加上调试信息,如果程序出错出现Core dump文件时可以从Core dump文件里快速定位到程序哪行出了问题。
做一个广告,就是我的网站了:
在线图片处理:图科网
在线视频转gif:视频转gif
在线图片格式和尺寸转换:图片格式处理
在线gif尺寸缩放:gif尺寸缩放
在线图片文字识别:文字识别
在线生成avatar头像:avatar头像