strfile.c (17555) | strfile.c (19288) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ken Arnold. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 336 unchanged lines hidden (view full) --- 345 fp = Firstch; 346 while (i--) 347 *lp++ = fp++->pos; 348 (void) fclose(Sort_1); 349 (void) fclose(Sort_2); 350 Tbl.str_flags |= STR_ORDERED; 351} 352 | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ken Arnold. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 336 unchanged lines hidden (view full) --- 345 fp = Firstch; 346 while (i--) 347 *lp++ = fp++->pos; 348 (void) fclose(Sort_1); 349 (void) fclose(Sort_2); 350 Tbl.str_flags |= STR_ORDERED; 351} 352 |
353/* static */ int collate_range_cmp (c1, c2) 354 int c1, c2; 355{ 356 static char s1[2], s2[2]; 357 int ret; 358 359 c1 &= UCHAR_MAX; 360 c2 &= UCHAR_MAX; 361 if (c1 == c2) 362 return (0); 363 s1[0] = c1; 364 s2[0] = c2; 365 if ((ret = strcoll(s1, s2)) != 0) 366 return (ret); 367 return (c1 - c2); 368} 369 |
|
353/* 354 * cmp_str: 355 * Compare two strings in the file 356 */ 357int cmp_str(p1, p2) 358STR *p1, *p2; 359{ 360 register int c1, c2; --- 70 unchanged lines hidden --- | 370/* 371 * cmp_str: 372 * Compare two strings in the file 373 */ 374int cmp_str(p1, p2) 375STR *p1, *p2; 376{ 377 register int c1, c2; --- 70 unchanged lines hidden --- |