What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-04 21:25:04
pattern matching alias linux
command_not_found_handle() { local cmd_str # change the argument-list array back to a string printf -v cmd_str '%q ' "$@" # process that string: case $cmd_str in "git@"*".git") eval "git clone $cmd_str&qu... Add solution -
Other 2022-01-23 07:55:14
how to take multiple char in C
Search Results Featured snippet from the web scanf ( %d , &n); for (i = 0; i < n; i++) { scanf ("%c", &c); printf ("%c\n", c); //printed only after all characters are read. printf ("%d\n", c); //printed only after ... Add solution -
C++ 2022-01-22 14:25:20
va_list to printf
/* vprintf example */ #include <stdio.h> #include <stdarg.h> void WriteFormatted ( const char * format, ... ) { va_list args; va_start (args, format); vprintf (format, args); va_end (args); } int main () { WriteFormatted ("Ca... Add solution -
Other 2021-11-16 06:53:08
Clear RAM Cache and Swap Space.
# echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared' OR $ su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf... Add solution -
C++ 2021-11-15 17:13:17
vprintf
// vprintf syntax int vprintf ( const char * format, va_list arg ); Add solution -
C 2021-11-13 14:28:13
ask the user if they would like to do something again in C
#include<stdio.h> int main(){ int x, y, sum; char ch; print: printf ("Enter the first number:"); scanf ("%d",&x); printf ("Enter the second number:"); scanf ("%d",&y); sum=x+y; ... Add solution -
Shell/Bash 2021-11-06 13:50:17
how to pull private docker image in helm charts
# values.yaml imageCredentials: name: credentials-name registry: private-docker-registry (eg: https://index.docker.io/v1/) username: user password: pass replicaCount: 1 application: name: votingApp group: app container: image: votingA... Add solution -
C 2021-11-04 01:15:13
prime or composite in c using function
#include<stdio.h> int prime_composite(int num); void main() { int n,ret; printf ("Enter a number: "); scanf ("%d",&n); ret = prime_composite(n); if(ret == 2 ) printf("\nThe number is Prime\... Add solution
Best helpers
Ranking is empty