Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

dbdatechar [Table of Contents] dbdatecrack

Open Client DB-Library/C Reference Manual

[-] Chapter 2: Routines
[-] dbdatecmp

dbdatecmp

Function

Compare two DBDATETIME values.

Syntax

int dbdatecmp(dbproc, d1, d2)

DBPROCESS *dbproc;
DBDATETIME *d1;
DBDATETIME *d2;

Parameters

dbproc - A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and the server.

This parameter may be NULL.

d1 - A pointer to a DBDATETIME value.

d2 - A pointer to a DBDATETIME value.

Returns

If d1 = d2, dbdatecmp returns 0.

If d1 < d2, dbdatecmp returns -1.

If d1 > d2, dbdatecmp returns 1.

Comments

See Also

dbdate4cmp, dbmnycmp, dbmny4cmp


dbdatechar [Table of Contents] dbdatecrack