/[svn]/ircd-hybrid-7.2/src/irc_string.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/irc_string.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 977 by michael, Fri May 12 05:47:32 2006 UTC revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC
# Line 238  inetntoa(const char *in) Line 238  inetntoa(const char *in)
238    return buf;    return buf;
239  }  }
240    
241  #ifndef HAVE_BASENAME  /* libio_basename()
   
 /* basename()  
242   *   *
243   * input        - i.e. "/usr/local/ircd/modules/m_whois.so"   * input        - i.e. "/usr/local/ircd/modules/m_whois.so"
244   * output       - i.e. "m_whois.so"   * output       - i.e. "m_whois.so"
245   * side effects - this will be overwritten on subsequent calls   * side effects - this will be overwritten on subsequent calls
246   */   */
247  char *  const char *
248  basename(char *path)  libio_basename(const char *path)
249  {  {
250    char *s;    const char *s;
251    
252    if ((s = strrchr(path, '/')) == NULL)    if ((s = strrchr(path, '/')) == NULL)
253      s = path;      s = path;
# Line 259  basename(char *path) Line 257  basename(char *path)
257    return s;    return s;
258  }  }
259    
 #endif /* !HAVE_BASENAME */  
   
260  /*  /*
261   * Copyright (c) 1996-1999 by Internet Software Consortium.   * Copyright (c) 1996-1999 by Internet Software Consortium.
262   *   *

Legend:
Removed from v.977  
changed lines
  Added in v.978

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28