• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Eingebettete Systemsoftware
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2024/25
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Systemprogrammierung 2
      • Verlässliche Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme
    • Vorlesung
      • Folien
    • Übung
      • Seminar
      • Aufgaben
      • Aufgabe 0: C++ Streams
        • Aufgabe 1: Ein-/Ausgabe
          • Aufgabe 2: Unterbrechungen
            • Aufgabe 3: Pro-/Epilog
              • Aufgabe 4: Kontextwechsel
                • Aufgabe 5: Zeitscheiben
                  • Aufgabe 6: Synchronisation
                    • Aufgabe 7: Anwendung
                      • Assembler Crashkurs
                        • C++ Crashkurs
                          • Entwicklungsumgebung
                            • FAQ
                              • Ruhmeshalle
                              • Evaluation

                              Aufgabe 7: Anwendung

                              Functions
                              String function

                              String functions as provided by string.h in the C standard library. More...

                              Functions

                              char * strchrnul (const char *s, int c)
                               Find the first occurrence of a character in a string. More...
                               
                              char * strchr (const char *s, int c)
                               Find the first occurrence of a character in a string. More...
                               
                              int strcmp (const char *s1, const char *s2)
                               Compare two strings. More...
                               
                              int strncmp (const char *s1, const char *s2, size_t n)
                               Compare two strings. More...
                               
                              size_t strlen (const char *s)
                               Calculate the length of a string. More...
                               
                              size_t strnlen (const char *s, size_t maxlen)
                               Calculate the length of a string, limited by maxlen. More...
                               
                              char * strcpy (char *dest, const char *src)
                               Copy the contents of a string including the terminating null byte (\0) More...
                               
                              char * strncpy (char *dest, const char *src, size_t n)
                               Copy the contents of a string up to a maximum length or the terminating null byte (\0), whatever comes first. More...
                               
                              void * memcpy (void *__restrict__ dest, void const *__restrict__ src, size_t size)
                               Copy a memory area. More...
                               
                              void * memmove (void *dest, void const *src, size_t size)
                               Copy a memory area while the source may overlap with the destination. More...
                               
                              void * memset (void *dest, int pattern, size_t size)
                               Fill a memory area with a pattern. More...
                               
                              int memcmp (const void *s1, const void *s2, size_t n)
                               Compare a memory area. More...
                               

                              Detailed Description

                              String functions as provided by string.h in the C standard library.

                              Function Documentation

                              char * strchrnul ( const char *  s,
                              int  c 
                              )

                              Find the first occurrence of a character in a string.

                              Parameters
                              sstring to
                              ccharacter to find
                              Returns
                              Pointer to first occurrence of the character or to null byte at the end of the string if not found
                              char * strchr ( const char *  s,
                              int  c 
                              )

                              Find the first occurrence of a character in a string.

                              Parameters
                              sstring to
                              ccharacter to find
                              Returns
                              Pointer to first occurrence of the character or to nullptr if not found
                              int strcmp ( const char *  s1,
                              const char *  s2 
                              )

                              Compare two strings.

                              Parameters
                              s1first string
                              s2second string
                              Returns
                              an integer less than, equal to, or greater than zero if first string is found, respectively, to be less than, to match, or be greater than second string
                              int strncmp ( const char *  s1,
                              const char *  s2,
                              size_t  n 
                              )

                              Compare two strings.

                              Parameters
                              s1first string
                              s2second string
                              nnumber of bytes to compare
                              Returns
                              an integer less than, equal to, or greater than zero if the given number of bytes of the first string are found, respectively, to be less than, to match, or be greater than second string
                              size_t strlen ( const char *  s)

                              Calculate the length of a string.

                              Parameters
                              spointer to a string
                              Returns
                              number of bytes in the string
                              size_t strnlen ( const char *  s,
                              size_t  maxlen 
                              )

                              Calculate the length of a string, limited by maxlen.

                              Parameters
                              spointer to a string
                              maxlenupper limit of length to be returned
                              Returns
                              number of bytes in the string, or maxlen – whichever is smaller
                              char * strcpy ( char *  dest,
                              const char *  src 
                              )

                              Copy the contents of a string including the terminating null byte (\0)

                              Parameters
                              destdestination string buffer
                              srcsource string buffer
                              Returns
                              a pointer to the destination string buffer
                              Note
                              Beware of buffer overruns!
                              char * strncpy ( char *  dest,
                              const char *  src,
                              size_t  n 
                              )

                              Copy the contents of a string up to a maximum length or the terminating null byte (\0), whatever comes first.

                              Parameters
                              destdestination string buffer
                              srcsource string buffer
                              nmaximum number of bytes to copy
                              Returns
                              a pointer to the destination string buffer
                              Note
                              If there is no null byte (\0) among the first n bytes, the destination will not be null-terminated!
                              void * memcpy ( void *__restrict__  dest,
                              void const *__restrict__  src,
                              size_t  size 
                              )

                              Copy a memory area.

                              Parameters
                              destdestination buffer
                              srcsource buffer
                              sizenumber of bytes to copy
                              Returns
                              pointer to destination
                              Note
                              The memory must not overlap!
                              void * memmove ( void *  dest,
                              void const *  src,
                              size_t  size 
                              )

                              Copy a memory area while the source may overlap with the destination.

                              Parameters
                              destdestination buffer
                              srcsource buffer
                              sizenumber of bytes to copy
                              Returns
                              pointer to destination
                              void * memset ( void *  dest,
                              int  pattern,
                              size_t  size 
                              )

                              Fill a memory area with a pattern.

                              Parameters
                              destdestination buffer
                              patternsingle byte pattern
                              sizenumber of bytes to fill with pattern
                              Returns
                              pointer to destination
                              int memcmp ( const void *  s1,
                              const void *  s2,
                              size_t  n 
                              )

                              Compare a memory area.

                              Parameters
                              s1first memory buffer
                              s2second memory buffer
                              nnumber of bytes to compare
                              Returns
                              an integer less than, equal to, or greater than zero if the first n bytes of s1 is found, respectively, to be less than, to match, or be greater than the first n bytes of s2.
                              Friedrich-Alexander-Universität
                              Erlangen-Nürnberg

                              Schlossplatz 4
                              91054 Erlangen
                              • Impressum
                              • Datenschutz
                              • Barrierefreiheit
                              • Facebook
                              • RSS Feed
                              • Xing
                              Nach oben