# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:45+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "strtok" msgstr "" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-25" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "strtok - extract tokens from strings" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Estring.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, const char *restrict >IB<);>\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function breaks a string into a sequence of zero or more " "nonempty tokens. On the first call to B(), the string to be parsed " "should be specified in I. In each subsequent call that should parse " "the same string, I must be NULL." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument specifies a set of bytes that delimit the tokens in " "the parsed string. The caller may specify different strings in I in " "successive calls that parse the same string." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each call to B() returns a pointer to a null-terminated string " "containing the next token. This string does not include the delimiting " "byte. If no more tokens are found, B() returns NULL." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A sequence of calls to B() that operate on the same string " "maintains a pointer that determines the point from which to start searching " "for the next token. The first call to B() sets this pointer to " "point to the first byte of the string. The start of the next token is " "determined by scanning forward for the next nondelimiter byte in I. If " "such a byte is found, it is taken as the start of the next token. If no " "such byte is found, then there are no more tokens, and B() returns " "NULL. (A string that is empty or that contains only delimiters will thus " "cause B() to return NULL on the first call.)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The end of each token is found by scanning forward until either the next " "delimiter byte is found or until the terminating null byte (\\[aq]\\[rs]0\\" "[aq]) is encountered. If a delimiter byte is found, it is overwritten with " "a null byte to terminate the current token, and B() saves a pointer " "to the following byte; that pointer will be used as the starting point when " "searching for the next token. In this case, B() returns a pointer " "to the start of the found token." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "From the above description, it follows that a sequence of two or more " "contiguous delimiter bytes in the parsed string is considered to be a single " "delimiter, and that delimiter bytes at the start or end of the string are " "ignored. Put another way: the tokens returned by B() are always " "nonempty strings. Thus, for example, given the string \\[dq]I\\" "[dq], successive calls to B() that specify the delimiter string \\" "[dq]I<;,>\\[dq] would return the strings \\[dq]I\\[dq] and \\" "[dq]I\\[dq], and then a null pointer." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns a pointer to the next token, or NULL if there are no " "more tokens." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr "" #. #-#-#-#-# archlinux: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: tbl table #. #-#-#-#-# debian-trixie: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: TP #. #-#-#-#-# debian-unstable: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: tbl table #. #-#-#-#-# fedora-44: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: TP #. #-#-#-#-# fedora-rawhide: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: TP #. #-#-#-#-# mageia-cauldron: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: TP #. #-#-#-#-# opensuse-leap-16-1: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: tbl table #. #-#-#-#-# opensuse-tumbleweed: strtok.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Unsafe race:strtok" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "C11, POSIX.1-2008." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001, C89, SVr4, 4.3BSD." msgstr "" #. type: SH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "CAVEATS" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "Be cautious when using this function. If you do use it, note that:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The identity of the delimiting byte is lost." msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function uses a static buffer while parsing, so it's not " "thread safe. Use B(3) if this matters to you." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "See B(3)." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(3), B(3), B(3), B(3), B(3), " "B(3), B(3), B(3), B(3)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-16" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "strtok, strtok_r - extract tokens from strings" msgstr "" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "" "BIB<, const char *restrict >IB<);>\n" "BIB<, const char *restrict >IB<,>\n" "B< char **restrict >IB<);>\n" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "B():" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "" " _POSIX_C_SOURCE\n" " || /* glibc E= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "From the above description, it follows that a sequence of two or more " "contiguous delimiter bytes in the parsed string is considered to be a single " "delimiter, and that delimiter bytes at the start or end of the string are " "ignored. Put another way: the tokens returned by B() are always " "nonempty strings. Thus, for example, given the string \"I\", " "successive calls to B() that specify the delimiter string \"I<;,>\" " "would return the strings \"I\" and \"I\", and then a null pointer." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "The B() function is a reentrant version of B(). The " "I argument is a pointer to a I variable that is used " "internally by B() in order to maintain context between successive " "calls that parse the same string." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "On the first call to B(), I should point to the string to be " "parsed, and the value of I<*saveptr> is ignored (but see VERSIONS). In " "subsequent calls, I should be NULL, and I (and the buffer that " "it points to) should be unchanged since the previous call." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "Different strings may be parsed concurrently using sequences of calls to " "B() that specify different I arguments." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "The B() and B() functions return a pointer to the next " "token, or NULL if there are no more tokens." msgstr "" #. type: TP #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "B()" msgstr "" #. type: tbl table #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "MT-Safe" msgstr "" #. type: SH #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "VERSIONS" msgstr "" #. Tru64, according to its manual page #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "On some implementations, I<*saveptr> is required to be NULL on the first " "call to B() that is being used to parse I." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "POSIX.1-2008." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "POSIX.1-2001." msgstr "" #. type: SH #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "BUGS" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "Be cautious when using these functions. If you do use them, note that:" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "These functions modify their first argument." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "These functions cannot be used on constant strings." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "The B() function uses a static buffer while parsing, so it's not " "thread safe. Use B() if this matters to you." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "The program below uses nested loops that employ B() to break a " "string into a two-level hierarchy of tokens. The first command-line " "argument specifies the string to be parsed. The second argument specifies " "the delimiter byte(s) to be used to separate that string into \"major\" " "tokens. The third argument specifies the delimiter byte(s) to be used to " "separate the \"major\" tokens into subtokens." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "An example of the output produced by this program is the following:" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "" "$B< ./a.out \\[aq]a/bbb///cc;xxx:yyy:\\[aq] \\[aq]:;\\[aq] \\[aq]/\\[aq]>\n" "1: a/bbb///cc\n" " --E a\n" " --E bbb\n" " --E cc\n" "2: xxx\n" " --E xxx\n" "3: yyy\n" " --E yyy\n" msgstr "" #. type: SS #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "Program source" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char *str1, *str2, *token, *subtoken;\n" " char *saveptr1, *saveptr2;\n" " int j;\n" "\\&\n" " if (argc != 4) {\n" " fprintf(stderr, \"Usage: %s string delim subdelim\\[rs]n\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n" " token = strtok_r(str1, argv[2], &saveptr1);\n" " if (token == NULL)\n" " break;\n" " printf(\"%d: %s\\[rs]n\", j, token);\n" "\\&\n" " for (str2 = token; ; str2 = NULL) {\n" " subtoken = strtok_r(str2, argv[3], &saveptr2);\n" " if (subtoken == NULL)\n" " break;\n" " printf(\"\\[rs]t --E %s\\[rs]n\", subtoken);\n" " }\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "Another example program using B() can be found in " "B(3)." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "B(3), B(3), B(3), B(3), B(3), " "B(3), B(3), B(3)" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "2026-02-08" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""