Homec4science

strncmp is better than strpos

Authored by Bob Trahan <bob.trahan@gmail.com> on Aug 14 2012, 03:02.

Description

strncmp is better than strpos

Summary: no need to get all O(N) up in this when we can do constant time of "8"

Test Plan: arc lint

Reviewers: vrana, epriestley

Reviewed By: vrana

CC: aran, Korvin

Maniphest Tasks: T891

Differential Revision: https://secure.phabricator.com/D3271

Details

Committed
Bob Trahan <bob.trahan@gmail.com>Aug 14 2012, 03:02
Pushed
aubortJan 31 2017, 17:16
Parents
rPH6ce39db6ca39: Add ID to Pending Differential Revisions panel
Branches
Unknown
Tags
Unknown

Event Timeline

Bob Trahan <bob.trahan@gmail.com> committed rPHf748a472370f: strncmp is better than strpos (authored by Bob Trahan <bob.trahan@gmail.com>).Aug 14 2012, 03:02