An alternative implementation in C for this Code Review question in JavaScript: List all repeated substrings with a fixed length by Ismael Miguel,
On behalf of @CiaPan
The problem:
given a character string
strand a positive integernfind all repeated (possibly overlapping) substrings ofstrhaving the lengthn.