Details

[Home]

Issue of the Standard # S0009

Brief

Lack of details in the requirements for __rawmemchr() function.

Detailed Description

Standard states that __rawmemchr() searches in ‘s’ for ‘c ’, but it does not describe the behavior of the function __rawmemchr() when there is no ‘c’ in ‘s'. In particular, there is no information when does the function stop searching in this case and whether it returns NULL.

Problem location(s) in the standard

Linux Standard Base Core Specification 3.1, Chapter 13. Base Libraries, 13.5. Interface Definitions for libc, description of function __rawmemchr.

Possible solutions

Add the following sentence for the description of the function: “If ‘с’ is absent in ‘s’, then behavior is undefined”.

Accepted

LSB Bugzilla, 1333

Status

Fixed in LSB 4.0

[Home]