We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6802104 commit 03f7653Copy full SHA for 03f7653
embed.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
# ./embed.sh <source> <target> <variable>
3
-SIZE=$(($(stat -c %s "$1") + 1))
+SIZE=$(($(cat "$1" | wc -c) + 1))
4
5
cat <<EOF > "$2.h"
6
#pragma once
0 commit comments