home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
351.lha
/
FAM_v1.1
/
sources
/
FAMgrep1.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-02-21
|
320 b
|
23 lines
/*
* FAMgrep1.c
* Sample Simple FAMgrep code.
* returns true if last char of name matches *p
*/
#include "exec/types.h"
#include "FAM.h"
#include "string.h"
long MyGrepFunc(struct ScanListNode * node, char * p)
{
char * q;
q = node->node.ln_Name;
q = q + strlen(q) - 1;
return *q == *p;
}