Skip to content

Instantly share code, notes, and snippets.

@strickyak
Created March 8, 2020 00:01
Show Gist options
  • Save strickyak/c840b10b81c1c9ad55fd621a713fe867 to your computer and use it in GitHub Desktop.
Save strickyak/c840b10b81c1c9ad55fd621a713fe867 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"path/filepath"
)
func main() {
matches, _ := filepath.Glob("*")
for _, s := range matches {
for i := 0; i < len(s); i++ {
fmt.Printf("(%d)", s[i])
}
fmt.Printf("\n")
for _, c := range s {
fmt.Printf("{%d}", c)
}
fmt.Printf("\n")
}
}
/*
$ cat mkdir255.c
#include <stdlib.h>
main() {
int e = mkdir("\xFF");
exit(e);
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment