~ubuntu-branches/ubuntu/karmic/postgresql-8.4/karmic-security

« back to all changes in this revision

Viewing changes to src/backend/utils/adt/varlena.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-05-05 00:58:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505005806-c19tt7oyqb7kuw49
Tags: 8.4~beta1+cvs20090503-1
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1138
1138
 * Comparison function for text strings with given lengths.
1139
1139
 * Includes locale support, but must copy strings to temporary memory
1140
1140
 *      to allow null-termination for inputs to strcoll().
1141
 
 * Returns -1, 0 or 1
 
1141
 * Returns an integer less than, equal to, or greater than zero, indicating
 
1142
 * whether arg1 is less than, equal to, or greater than arg2.
1142
1143
 */
1143
1144
int
1144
1145
varstr_cmp(char *arg1, int len1, char *arg2, int len2)