Oasis3 4.0.2
ilenstr.f
Go to the documentation of this file.
00001       FUNCTION ilenstr (cdstr, knstr)
00002 C****
00003 C               ******************************
00004 C               * OASIS FUNCTION  -  LEVEL T *
00005 C               * --------------     ------- *
00006 C               ******************************
00007 C
00008 C**** *ilenstr*  - Search function
00009 C
00010 C     Purpose:
00011 C     -------
00012 C     Find the length of a character string (no blank characters)
00013 C
00014 C**   Interface:
00015 C     ---------
00016 C       *ii =*  *ilenstr (cdstr, knstr)*
00017 C
00018 C     Input:
00019 C     -----
00020 C                cdstr : string to be searched (char string)
00021 C                knstr : total length of the string (integer)
00022 C
00023 C     Output:
00024 C     ------
00025 C     None
00026 C
00027 C     Workspace:
00028 C     ---------
00029 C     None
00030 C
00031 C     Externals:
00032 C     ---------
00033 C     nextch, nextbl
00034 C
00035 C     Reference:
00036 C     ---------
00037 C     See OASIS manual (1995)
00038 C
00039 C     History:
00040 C     -------
00041 C       Version   Programmer     Date      Description
00042 C       -------   ----------     ----      -----------  
00043 C       2.0       L. Terray      95/09/01  created
00044 C
00045 C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
00046 C
00047 C* ---------------------------- Include files ---------------------------
00048 C
00049       USE mod_unit
00050 C
00051 C* ---------------------------- Argument declarations -------------------
00052 C
00053       CHARACTER*1 cdstr
00054       DIMENSION cdstr(knstr)
00055 C
00056 C* ---------------------------- Poema verses ----------------------------
00057 C
00058 C %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
00059 C
00060 C*    1. Find character string length
00061 C        ----------------------------
00062 C
00063       ii = nextch (cdstr, 1, knstr)
00064       ii = nextbl (cdstr, ii, knstr)
00065       ii = ii - 1
00066       ilenstr = ii
00067 C
00068 C*    2. End of function
00069 C        ---------------
00070 C
00071       RETURN
00072       END
 All Data Structures Namespaces Files Functions Variables Defines