vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
404 stars 183 forks source link

change how we determine the extensions #151

Open dirkx opened 2 years ago

dirkx commented 2 years ago

to deal with things like foo.ino.hex; or foo.sig.hex which are increasingly common. (Fixes #150)

spth commented 2 years ago

This changes a use of strrchr to rindex. strrchr is standard C. rindex is POSIX only. And rindex is even deprecated in POSIX since 2008.