% $Revision: 45 $
\def \@tempa $#1 #2-#3-#4 #5${#2/#3/#4}
\edef \filedate {\@tempa $Date: 2007-04-23 20:24:43 +0200 (Mon, 23 Apr 2007) $}
\def \fileversion {v1.1}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{cmdstring}%
  [\filedate \space \fileversion \space Reliable string (JN)]

\@ifdefinable \@gobblespace
  {\expandafter \def \expandafter \@gobblespace \space {}}

% v1.1: Modified after a suggestion of DAK
%       Test \escapechar > 255 removed to make the package
%       behave nicely with certain extensions of TeX

\newcommand*{\cmdstring}{%
  \ifnum \escapechar = 32
    \expandafter \expandafter
    \expandafter \@gobblespace
    \expandafter \string
  \else
    \if \string \ \space
      \expandafter\expandafter\expandafter \string
    \else
      \expandafter\expandafter\expandafter \expandafter
      \expandafter\expandafter\expandafter \@gobble
      \expandafter\expandafter\expandafter \string
    \fi
  \fi
}

\endinput
