Deleted Added
full compact
utmisc.c (217365) utmisc.c (229989)
1/*******************************************************************************
2 *
3 * Module Name: utmisc - common utility procedures
4 *
5 ******************************************************************************/
6
7/*
1/*******************************************************************************
2 *
3 * Module Name: utmisc - common utility procedures
4 *
5 ******************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2011, Intel Corp.
8 * Copyright (C) 2000 - 2012, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.

--- 444 unchanged lines hidden (view full) ---

461
462 for (String = SrcString; *String; String++)
463 {
464 *String = (char) ACPI_TOLOWER (*String);
465 }
466
467 return;
468}
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.

--- 444 unchanged lines hidden (view full) ---

461
462 for (String = SrcString; *String; String++)
463 {
464 *String = (char) ACPI_TOLOWER (*String);
465 }
466
467 return;
468}
469
470
471/******************************************************************************
472 *
473 * FUNCTION: AcpiUtStricmp
474 *
475 * PARAMETERS: String1 - first string to compare
476 * String2 - second string to compare
477 *
478 * RETURN: int that signifies string relationship. Zero means strings
479 * are equal.
480 *
481 * DESCRIPTION: Implementation of the non-ANSI stricmp function (compare
482 * strings with no case sensitivity)
483 *
484 ******************************************************************************/
485
486int
487AcpiUtStricmp (
488 char *String1,
489 char *String2)
490{
491 int c1;
492 int c2;
493
494
495 do
496 {
497 c1 = tolower ((int) *String1);
498 c2 = tolower ((int) *String2);
499
500 String1++;
501 String2++;
502 }
503 while ((c1 == c2) && (c1));
504
505 return (c1 - c2);
506}
469#endif
470
471
472/*******************************************************************************
473 *
474 * FUNCTION: AcpiUtPrintString
475 *
476 * PARAMETERS: String - Null terminated ASCII string

--- 785 unchanged lines hidden ---
507#endif
508
509
510/*******************************************************************************
511 *
512 * FUNCTION: AcpiUtPrintString
513 *
514 * PARAMETERS: String - Null terminated ASCII string

--- 785 unchanged lines hidden ---