www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20512] New: Return type of memchr should be inout(void)*

https://issues.dlang.org/show_bug.cgi?id=20512

          Issue ID: 20512
           Summary: Return type of memchr should be inout(void)* rather
                    than void*
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

Current: void* memchr(return const void* s, int c, size_t n) pure
Proposed: inout(void)* memchr(return inout void* s, int c, size_t n) pure;

--
Jan 16 2020