Dec 092017
 
This C function for Clipper returns the position in an array which DOES NOT match the char, num, date, or logical that is specified.
File ANOTPO.ZIP from The Programmer’s Corner in
Category Dbase Source Code
This C function for Clipper returns the position in an array which DOES NOT match the char, num, date, or logical that is specified.
File Name File Size Zip Size Zip Type
ANOTPOS.DOC 1896 759 deflated
ANOTPOSC.C 4092 865 deflated
ANOTPOSC.OBJ 2172 1235 deflated
TESTANOT.PRG 1944 658 deflated

Download File ANOTPO.ZIP Here

Contents of the ANOTPOS.DOC file



- ANOTPOS.DOC -

__________________________________________________________________

Author: Paul 'Skip' Moon 615-899-1285
Moon Microsystems (Sponsor of Chattanooga Area
1920 Gunbarrel Rd. Clipper Developers Group)
Suite 1014
Chattanooga, TN 37421


Files: ANOTPOS.DOC
ANOTPOSC.C Source for anotpos()
ANOTPOSC.OBJ Compiled version with MSC 5.1
TESTANOT.PRG Clipper source to test the function

Syntax: = anotpos( ,
[,] [,] )


Purpose: This C function returns the position in which
DOES NOT match the char, num, date, or logical in
. Optional parameters specify a
beginning and/or ending range to check.

Returns: Postion in array that doesn't match.
It returns -1 for illegal params one or two, and defaults
to assigning 1 to and array length
to if they are invalid or missing.


Note: I haven't tested it with all possible parameters, so you
might want to. I hope this is useful to you.





MS C compile batch file is:

CL /c /AL /Zl /Zi /Od /Oalt /FPa /Gs %1.c


MS link bat file:

link %1 /M /CO,,,@\clipper\alllibs.lnk;

^ This is just my lib link file

To test it: TESTANOT


_________________________________________________________________






 December 9, 2017  Add comments

Leave a Reply