TianoCore EDK2 master
Loading...
Searching...
No Matches
ShellSortTestApp.c File Reference
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/ShellCEntryLib.h>
#include <Library/SortLib.h>

Go to the source code of this file.

Functions

INTN EFIAPI Test (CONST VOID *b1, CONST VOID *b2)
 
INTN EFIAPI ShellAppMain (IN UINTN Argc, IN CHAR16 **Argv)
 

Detailed Description

This is a test application that demonstrates how to use the sorting functions.

Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ShellSortTestApp.c.

Function Documentation

◆ ShellAppMain()

INTN EFIAPI ShellAppMain ( IN UINTN  Argc,
IN CHAR16 **  Argv 
)

UEFI application entry point which has an interface similar to a standard C main function.

The ShellCEntryLib library instance wrappers the actual UEFI application entry point and calls this ShellAppMain function.

Parameters
ArgcArgument count
ArgvThe parsed arguments
Return values
0The application exited normally.
OtherAn error occurred.

Definition at line 59 of file ShellSortTestApp.c.

◆ Test()

INTN EFIAPI Test ( CONST VOID *  b1,
CONST VOID *  b2 
)

Test comparator.

Parameters
[in]b1The first INTN
[in]b2The other INTN
Return values
0They are the same.
-1b1 is less than b2
1b1 is greater then b2

Definition at line 27 of file ShellSortTestApp.c.