易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

数学排列组合算法 P(N,M) C(N,M)

yeah,组合的也出来了,再一起发一个
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32
{
class Program
{

static int s = 0;
static void Main(string[] args)
{
Console.Writ ......

C字符串总结

字符数组和字符串    
 
&字符数组和字符串的概念  &字符数组的初始化 
&字符串的输入输出  &综合举例 
字符数组和字符串的概念
    字符数组是元素类型为字符的数组 ,它既具有普通数组的一般性质 ,又具有某些特殊性质。
 & ......

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

前言:这一章我们讨论一下Linux下的信号处理函数. 
     Linux下的信号处理函数: 
1.信号的产生 
2.信号的处理 
3.其它信号函数 
--------------------------------------------------------------------------------
一个实例 
1。信号的产生  ......

CentOS5 no acceptable C compiler found in $PATH

CentOs5安装apache的时候
#./configure
(于检查系统是否有编译时所需的库,以及库的版本是否满足编译的需要等安装所需要的系统信息。为随后的编译工作做准备。)
提示错误如下:(没有GCC编译器环境)
checking build system type... i686-pc-linux-gnu
checking host system type.. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号