Harshit Sharma has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41420 )
Change subject: lib: Add strtok() and strtok_r()
......................................................................
Patch Set 6:
Patch Set 6:
(1 comment)
Shouldn't this be a single dereference?
No. That's correct. First,'\0' is put at the location where delimiter was found (**ptr = '\0'). Then, 'end' is moved so that it points to the very next location (*ptr++).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/41420
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic855b31669be1c274cbf247c53ffa6f74ec5bf35
Gerrit-Change-Number: 41420
Gerrit-PatchSet: 6
Gerrit-Owner: Harshit Sharma
harshitsharmajs@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Sindhoor Tilak
sindhoor@sin9yt.net
Gerrit-Reviewer: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Mon, 18 May 2020 16:43:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment