diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 08:45:40 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 08:45:40 +0800 |
commit | dacf25e962238c679c69b77a915689cdf72416d5 (patch) | |
tree | c22495931a068aa08743218d6deb8baec3e1e969 /request.h | |
parent | a631d884fcccdcdf826f1a6e5a4db22237b398c1 (diff) |
Generalise the struct comparison
Both structs have char * as their first elements.
Pointers to the structs are pointers to each of their first elements.
(https://beej.us/guide/bgc/html/split/structs-ii-more-fun-with-structs.html#fake-oop)
So, they would be char ** (not char *, as they're pointers to char *).
We then take the objects they point to, to get char *, so that we can
compare them with strcmp.
Diffstat (limited to 'request.h')
0 files changed, 0 insertions, 0 deletions