易截截图软件、单文件、免安装、纯绿色、仅160KB

Indent and Format C Program Source(indent manual)

This is Edition 2.2.10 of `The `indent' Manual', for Indent Version
2.2.10, last updated 23 July 2008.
Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996 Free Software
Foundation, Inc. Copyright (C) 1995, 1996 Joseph Arceneaux. Copyright
(C) 1999 Carlo Wood. Copyright (C) 2001 David Ingamells.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
`indent': Indent and Format C Program Source
*********************************************
The `indent' program changes the appearance of a C program by inserting
or deleting whitespace.
This is Edition 2.2.10, 23 July 2008, of `The `indent' Manual', for
Indent Version 2.2.10.
1 The `indent' Program
**********************
The `indent' program can be used to make code easier to read. It can
also convert from one style of writing C to another.
`indent' understands a substantial amount about the syntax of C, but it
also attempts to cope with incomplete and misformed syntax.
In version 1.2 and more recent versions, the GNU style of indenting
is the default.
1.1 Invoking `indent'
=====================
As of version 1.3, the format of the `indent' command is:
indent [OPTIONS] [INPUT-FILES]
indent [OPTIONS] [SINGLE-INPUT-FILE] [-o OUTPUT-FILE]
This format is different from earlier versions and other versions of
`indent'.
In the first form, one or more input files are specified. `indent'
makes a backup copy of each file, and the original file is replaced with
its indented version. *Note Backup files::, for an explanation of how
backups are made.
In the second form, only one input file is specified. In this case,
or when the standard input is used, you may specify an output file after
the `-o' option.
To cause `indent' to write to standard output, use the `-st' option.
This is only allowed when there is only one input file, or when the
standard input


相关文档:

用c写个控制台下的进度条

最近想写个控制台下的进度条,可以知道程序的进展情况,不用弄个界面。其中最主要的就是“\b“字符,它的ascii码值是10,是退格的意思。
现把代码贴上,如下(可以在vc和linux编译):
progress.c
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#define mysleep(n) Sleep(n*1000)
......

深入理解C/C++函数指针

转:http://school.ogdev.net/ArticleShow.asp?categoryid=10&id=6019
函数指针数组的妙用
笔者在开发某软件过程中遇到这样一个问题,前级模块传给我二进制数据,输入参数为 char* buffer和 int length,buffer是数据的首地址,length表示这批数据的长度。数据的特点是:长度不定,类型不定,由第一个字节(buffer[0] ......

Linux C notes (BOOK UNIX)

Chapter 1: Thread
① thread functions
1. pthread_self();
2. thread existing
    you can get the value of rval_ptr just by  pthread_join(pthread_t tht, void ** rval_ptr)
    cancel a thread as the thread exits with PTHREAD_CANCELED in pthread_exit, this functio ......

C++中extern “C”含义深层探索 [转]



1.
引言
  C++
语言的创建初衷是“a better C”
,但是这并不意味着C++
中类似C
语言的全局变量和函数所采用的编译和连接方式与C
语言完全相同。作 为一种欲与C
兼容的语言,C++
保留了一部分过程式语言的特点(被世人称为“
不彻底地面向对象”
),因而它可以定义不属于 ......

C代码混淆之旅

从天堂走向地狱的六部... 1
第一步、把for变成while. 2
第二步,把循坏变成递归... 2
第三步,弄乱代码结构/使用没有含义的变量名... 3
第四步,取消临时变量... 3
第五步,继续弄乱变量名... 4
第六步,移除常量... 4
 
从天堂走向地狱的六部
开始程序
下面是一个找出素数的程序:
 
查看源代码打印 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号