1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: misc.c |
2 | * File: misc.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: misc.C,v 1.1 2003/11/24 17:28:08 pcg Exp $ |
|
|
5 | * |
4 | * |
6 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1996 mj olesen <olesen@me.QueensU.CA> Queen's Univ at Kingston |
6 | * Copyright (c) 1996 mj olesen <olesen@me.QueensU.CA> Queen's Univ at Kingston |
8 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
7 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
9 | * Copyright (c) 1998-2000 Geoff Wing <gcw@pobox.com> |
8 | * Copyright (c) 1998-2000 Geoff Wing <gcw@pobox.com> |
… | |
… | |
24 | *----------------------------------------------------------------------*/ |
23 | *----------------------------------------------------------------------*/ |
25 | |
24 | |
26 | #include "../config.h" /* NECESSARY */ |
25 | #include "../config.h" /* NECESSARY */ |
27 | #include "rxvt.h" /* NECESSARY */ |
26 | #include "rxvt.h" /* NECESSARY */ |
28 | #include "misc.intpro" /* PROTOS for internal routines */ |
27 | #include "misc.intpro" /* PROTOS for internal routines */ |
|
|
28 | |
|
|
29 | /* EXTPROTO */ |
|
|
30 | char * |
|
|
31 | rxvt_strdup (const char *str) |
|
|
32 | { |
|
|
33 | return str ? strdup (str) : 0; |
|
|
34 | } |
29 | |
35 | |
30 | /* EXTPROTO */ |
36 | /* EXTPROTO */ |
31 | char * |
37 | char * |
32 | rxvt_r_basename(const char *str) |
38 | rxvt_r_basename(const char *str) |
33 | { |
39 | { |