1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
/*
* $Id: misc.c,v 1.1 2005/03/31 13:13:01 baud Exp $
*/
/*
* Copyright (C) 1990-1999 by CERN/IT/PDP/DM
* All rights reserved
*/
#ifndef lint
static char sccsid[] = "@(#)$RCSfile: misc.c,v $ $Revision: 1.1 $ $Date: 2005/03/31 13:13:01 $ CERN/IT/PDP/DM Frederic Hemmer";
#endif /* not lint */
/* misc.c Remote File I/O - Miscellaneous utility functions */
#define RFIO_KERNEL 1 /* system part of Remote File I/O */
#include <string.h>
#include <osdep.h>
void DLL_DECL striptb(s) /* Strip trailing blanks */
char *s;
{
register int i;
for (i=strlen(s)-1;s[i]==' ';i--);
s[i+1]='\0';
}
|