Added kernel module for starting the usb stack at boot time. It's not activated thoug...
[cake.git] / rom / dos / dosgetstring.c
blobf0a5d9cf48e11ab35850acf9fa648c2fdb6d602e
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: DosGetString() - Support for localized strings.
6 Lang: english
7 */
9 #include "dos_intern.h"
11 /*****i***********************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH1(STRPTR, DosGetString,
18 /* SYNOPSIS */
19 AROS_LHA(LONG, stringNum, D0),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 163, Dos)
24 /* FUNCTION
25 Internal DOS function, will return the string corresponding to
26 the number stringNum.
28 INPUTS
29 stringNum - The number of the string you want.
31 RESULT
32 A pointer to a string, or NULL if no string could be found with
33 a matching number.
35 NOTES
36 Error strings will ALWAYS be less than 80 characters, and should
37 ideally be less than 60 characters.
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 DosGetLocalizedString()
46 INTERNALS
47 This is dosPrivate5()
49 ******************************************************************************/
51 AROS_LIBFUNC_INIT
53 STRPTR retval;
55 retval = DosGetLocalizedString(stringNum);
57 if (!retval)
59 struct EString *es = EString;
61 while(es->Number)
63 if(es->Number == stringNum)
65 retval = es->String;
66 break;
68 es++;
72 return retval;
74 AROS_LIBFUNC_EXIT
76 } /* DosGetString */