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

通配符的 C 语言源代码

/* find files from wildcards, for MicroSoft C v4.0 */
/* ------------------------------------------------------------ */
/*   copyright 1986:      */
/*   Nourse Gregg & Browne, Inc.  */
/*   1 Horizon Road. #612   */
/*   Fort Lee, NJ 07024   */
/*        */
/* ------------------------------------------------------------ */
/* ----------------------------------------------------------------------*
 This pair of routines will do a wildcard search
 you must call dfirst() once to supply the search pattern
 and get back the first file that matches that pattern.
 then, call dnext() to get the next file in the list.
 both dfirst() and dnext() return zero if a file has been found,
  non-zero otherwise.
 The calling parameters are as follows:
 dfirst(pattern,attr,file_name,file_date,file_time,file_size);
 dnext(file_name,file_date,file_time,file_size);
     Where:
 char *pattern;  (wild card pattern. eg. "*.c" )
 int   attr;  (the file attribute qualifier )
 char *file_name; (output: the name of found file (13 bytes min.) )
 int  *file_date; (output: the file's date (directory format) )
 int  *file_time; (output: the file's time )
 long *file_size; (output: the file's size in bytes )
*----------------------------------------------------------------- */
#include <dos.h>
#include <stdlib.h>
#define SET_DTA 0x1A
#define GET_DTA 0x2F
#define FIND_FIRST 0x4E
#define FIND_NEXT 0x4F
 struct dta_struct {
 char dummy[21];
 char attr;
 int time;
 int date;
 int low_size;
 int hi_size;
 char name[13];
 char dummy2[14];
 };
static struct dta_struct dta;
dfirst (fmask,fattr,fname,fdate,fti


相关文档:

java+swing C/s模式的socket编程与长短连接

什么是socket
长连接与短连接
所谓长连接,指在一个TCP连接上可以连续发送多个数据包,在TCP连接保持期间,如果没有数据包发送,需要双方发检测包以维持此连接,一般需要自己做在线维持。
短连接是指通信双方有数据交互时,就建立一个TCP连接,数据发送完成后,则断开此TCP连接,一般银行都使用短连接。 
比如ht ......

C Runtime Library来历, API, MFC, ATL关系

CRT原先是指Microsoft开发的C Runtime Library,用于操作系统的开发及运行。后来在此基础上开发了C++
Runtime Library,所以现在CRT是指Microsoft开发的C/C++ Runtime
Library。在VC的CRT/SRC目录下,可以看到CRT的源码,不仅有C的,也有C++的。
      
CRT原先的目的就是支持操作系统的 ......

回忆C古老的math.h库 FreeEIM

回忆C古老的math.h库
概述:
  math.h中为我们提供了三角函数数值运算、指数对数运算、绝对值、平方值、以及一些基本的数值处理。
函数:sin
功能:计算弧度的正弦值。
使用说明:sin(x),x为传入的弧度值。
函数:cos
功能:计算弧度的余弦值。
使用说明:cos(x),x为传入的弧度值。
函数:tan
功能:计算弧度 ......

java 捕捉信号(linux下的kill,ctrl+c)

import sun.misc.Signal;
import sun.misc.SignalHandler;
/***
* java信号处理demo
* @author jiang_qh
*
*/
public class SignalHandlerExample implements SignalHandler{
private SignalHandler oldHandler;
public void handle(Signal signal) {
System.out.println("Signal handler called for signal " ......

Linux下C语言编程 信号处理函数

前言:这一章我们讨论一下Linux下的信号处理函数. 
     Linux下的信号处理函数: 
1.信号的产生 
2.信号的处理 
3.其它信号函数 
--------------------------------------------------------------------------------
一个实例 
1。信号的产生  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号