source: rtems/cpukit/libmisc/stringto/stringtopointer.c @ 48751ab

4.104.115
Last change on this file since 48751ab was 48751ab, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 23, 2009 at 2:32:34 PM

2009-07-23 Joel Sherrill <joel.sherrill@…>

  • libmisc/Makefile.am, libmisc/shell/main_chmod.c, libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c, libmisc/shell/main_mfill.c, libmisc/shell/main_mmove.c, libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c, libmisc/shell/main_sleep.c, libmisc/shell/main_umask.c, libmisc/shell/shell_script.c, libmisc/stringto/stringto.h, libmisc/stringto/stringto_template.h: Convert return type from bool to rtems_status_code and add rtems_string_to_pointer. Perform associated clean up and changes for return type change.
  • libmisc/stringto/stringtopointer.c: New file.
  • Property mode set to 100644
File size: 708 bytes
Line 
1/*
2 *  COPYRIGHT (c) 2009.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12/*
13 *  Instantiate an error checking wrapper for strtoul which is
14 *  used to input a (void *)
15 *
16 *  NOTE: This is only an appropriate implementation when unsigned long
17 *        can represent a void *
18 */
19#define STRING_TO_POINTER
20#define STRING_TO_TYPE void *
21#define STRING_TO_INPUT_TYPE unsigned long
22#define STRING_TO_NAME rtems_string_to_pointer
23#define STRING_TO_METHOD strtoul
24#define STRING_TO_MAX ULONG_MAX
25#include "stringto_template.h"
Note: See TracBrowser for help on using the repository browser.