The number of f**ks and sh**ts in the linux kernel source(blog.satisheerpini.net)
blog.satisheerpini.net
The number of f**ks and sh**ts in the linux kernel source
http://blog.satisheerpini.net/2011/07/number-of-fks-and-sts-in-linux-kernel.html
2 comments
Would have been better if it didn't count words like "pushit" as a shit.
One small optimization I can think of: if the first character isn't an 'f' or 's', you can skip 4 characters ( fseek(file, 4, CURR_SET) ). Similarly for ({'u','h'}, 2), etc. You'll save traversals, lookups, and comparisons, which would be a boon in larger directories.