source: rtems/cpukit/libmisc/bspcmdline/bspcmdline_getparamraw.c @ b2bbdb9

4.104.11
Last change on this file since b2bbdb9 was b2bbdb9, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 27, 2010 at 5:01:30 AM

Add HAVE_CONFIG_H support to let files receive configure defines.

  • Property mode set to 100644
File size: 661 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-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#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <string.h>
17
18#include <rtems/bspcmdline.h>
19
20extern const char *bsp_boot_cmdline;
21
22const char *rtems_bsp_cmdline_get_param_raw(
23  const char *name
24)
25{
26  const char *p;
27
28  if ( !name )
29    return NULL;
30
31  if ( !bsp_boot_cmdline )
32    return NULL;
33
34  p = strstr(bsp_boot_cmdline, name);
35  /* printf( "raw: %p (%s)\n", p, p ); */
36  return p;
37}
Note: See TracBrowser for help on using the repository browser.