Add chapter 18 exercises (still missing custom nftw)

@rmscarenhas  :disappointed: 
You should probably return `NULL` here as well to keep your error handling consistent.