Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ strlen(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       strlen(D3)                                                strlen(D3)


       NAME
             strlen - determine the length of a string

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/ddi.h>
             size_t strlen (const char *sptr)

          Arguments
             The argument sptr points to a string, which is an array of
             characters terminated by a null-character.

       DESCRIPTION
             The function strlen determines the length of characters in the
             string pointed to by sptr.

          Return Values
             The function strlen returns the number of characters, not
             including the terminating null-character, in the string
             pointed to by sptr.

       USAGE
             strlen is often used to determine the length of a string prior
             to allocating space to hold a copy of the string.  In this
             case, remember to allocate one more byte than the size
             returned by strlen, to hold the null-character.

          Level
             Base or Interrupt.

          Synchronization Constraints
             Does not sleep.

             Driver-defined basic locks, read/write locks, and sleep locks
             may be held across calls to this function.

       REFERENCES
             bcmp(D3), bcopy(D3), kmem_alloc(D3), strncat(D3), strncmp(D3),
             strncpy(D3)

       NOTICES
          Portability
             All processors





                           Copyright 1994 Novell, Inc.               Page 1













      strlen(D3)                                                strlen(D3)


         Applicability
            ddi: 5, 5mp, 6, 6mp, 7, 7mp














































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026