What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-17 06:19:10
variadic macros
// variadic_macros.cpp #include <stdio.h> #define EMPTY #define CHECK1(x, ...) if (!(x)) { printf(__VA_ARGS__); } #define CHECK2(x, ...) if ((x)) { printf(__VA_ARGS__); } #define CHECK3(...) { printf(__VA_ARGS__); } #define MACRO(s, ...) printf(s, ... Add solution -
Shell/Bash 2021-10-10 08:03:05
command to transform to asci code
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Shell/Bash 2021-10-08 06:08:03
remote: Permission to asfand005/test.git denied to asfand87.
printf "protocol=https\nhost=github.com\nusername=<me>" | \ git credential-manager-core get # output: protocol=https host=github.com username=<me> password=<oldpassword> Add solution -
Shell/Bash 2021-10-02 10:14:02
command to transform to asci code bash
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
C++ 2021-10-01 17:42:06
arduino sprintf float
// On arduino, sprintf does not support formatting floats, but it can be done // with some simple integer formatting: float f = 3.14; sprintf(str, "Float value: %d.%02d", (int)f, (int)(fabsf(f)*100)%100); // str will now be: "Float value... Add solution -
C 2021-10-01 04:32:03
sigaction in c
/* Example of using sigaction() to setup a signal handler with 3 arguments * including siginfo_t. */ #include <stdio.h> #include <unistd.h> #include <signal.h> #include <string.h> static void hdl (int sig, siginfo_t *sigin... Add solution
Best helpers
Loronzo
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
Sara J
+5
DJaye
+5
Umesh
+5
Mai0003c
+5
Zulu
+5
Rusnasonov
+5
Pc1oad1etter
+5
Lupa
+5
Vermilions
+5
Ian Goldby
+5
Amit Pareek
+5
Elenaher
+5
Poster
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5
Heewoo Kim
+5
JBeez
+5