Skip to content
Snippets Groups Projects
Commit 2226441c authored by Olivier Couet's avatar Olivier Couet
Browse files

- Add lnblnk. This function is included in most compiler libraries, but is missing

  for compilers like icc.


git-svn-id: http://root.cern.ch/svn/root/trunk@23412 27541ba8-7e3a-0410-8455-c3a389f83636
parent d89e41f6
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ typedef long off_t; ...@@ -19,6 +19,7 @@ typedef long off_t;
#define vxinvc_ __stdcall VXINVC #define vxinvc_ __stdcall VXINVC
#define cfopei_ __stdcall CFOPEI #define cfopei_ __stdcall CFOPEI
#define cfstati_ __stdcall CFSTATI #define cfstati_ __stdcall CFSTATI
#define lnblnk_ __stdcall LNBLNK
#else #else
#include <unistd.h> #include <unistd.h>
...@@ -276,3 +277,14 @@ done: ...@@ -276,3 +277,14 @@ done:
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
int lnblnk_ (char *chline, int len)
{
char *chcur;
chcur = chline + len;
while (chcur > chline) { if (*--chcur != ' ') goto exit; }
return 0;
exit: return chcur+1 - chline;
}
//------------------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment