-
Sum and multiplication
$ls first-example first-example.c new-sum.c sum sum.c $cat new-sum.c #define _XOPEN_SOURCE 500 #include <stdio.h> #include <stdlib.h> #include <unistd.h> void printhelp(char progname[]); int main(int argc, char *argv[]) { int i, opt, sum; /* Simple sanity check */ if (argc == 1) { printhelp(argv[0]); return 1; } /* Parse command-line options */ while ((opt = getopt(argc, argv, “smh”))…
-
Sum of numbers
$lsfirst-example first-example.c new-sum.c sum.c$gcc sum.c -o sum$cat sum.c #include <stdio.h>#include <stdlib.h>void printhelp(char progname[]); int main(int argc, char *argv[]){int i;int sum = 0; /* Simple sanity check */if (argc == 1){printhelp(argv[0]);return 1;} for (i=1; i<argc; i++){sum = sum + atoi(argv[i]);}printf(“Total sum: %i\n”, sum);return 0;} void printhelp(char progname[]){printf(“%s integer …\n”, progname);printf(“This program takes any number of ”…
-
Hello World
$lsfirst-example.c new-sum.c sum.c$cat first-example.c #include <stdio.h>int main(void){printf(“Hello, world!\n”);return 0;}$gcc first-example.c -o first-example$./first-exampleHello, world!$
-
acpi_video_flags flags
[text] it allows mode of video boot to be set during run time. [/text] SHELL SESSION [bash] $pwd /proc/sys/kernel $sudo cat ac acct acpi_video_flags $sudo cat acpi_video_flags 0 $ [/bash] LINKS https://www.kernel.org/doc/Documentation/power/video.txt https://www.kernel.org/doc/Documentation/sysctl/kernel.txt
-
prayer against depression – by saint ignatius of loyola
O Christ Jesus, when all is darkness and we feel our weakness and helplessness, give us the sense of Your presence, Your love, and Your strength. Help us to have perfect trust in Your protecting love and strengthening power, so that nothing may frighten or worry us, for, living close to You, we shall see…
-
Colossians 3:23-24
23 Whatever you do, do from the heart, as for the Lord and not for others, 24 knowing that you will receive from the Lord the due payment of the inheritance; be slaves of the Lord Christ.
-
1 PETER 4:8
8 Above all, let your love for one another be intense, because love covers a multitude of sins.
-
PROVERBS 18:16
16 Gifts clear the way for people, winning access to the great.