Fortran SFF API to data I/O streams in C++

◆ sff_TrimLen()

subroutine sff_TrimLen ( character, dimension(*)  string,
integer  ntrim 
)

Definition at line 39 of file fapid_sff_trimlen.f.

39 c
40 c give length of a string excluding trailing blanks
41 c Input:
42 c string: String to be trimmed
43 c Output:
44 c ntrim: length of string excluding trailing blanks
45 c
46  integer ntrim
47  character string*(*)
48 cE
49  do 10 ntrim=len(string),1,-1
50  10 if(string(ntrim:ntrim).ne.' ') return
51  ntrim = 1
52  return