genericopenlibs/openenvcore/libc/src/gen/getprogname.c
changeset 31 ce057bb09d0b
child 34 5fae379060a7
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 /*
       
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <sys/cdefs.h>
       
    20 __FBSDID("$FreeBSD: src/lib/libc/gen/getprogname.c,v 1.4 2002/03/29 22:43:41 markm Exp $");
       
    21 
       
    22 
       
    23 #include <stdlib.h>
       
    24 #include "un-namespace.h"
       
    25 
       
    26 #include "libc_private.h"
       
    27 
       
    28 #ifndef __SYMBIAN32__
       
    29 __weak_reference(_getprogname, getprogname);
       
    30 #endif //__SYMBIAN32__
       
    31 
       
    32 EXPORT_C const char * getprogname(void)
       
    33 {
       
    34 	return (__progname);
       
    35 }