$ls ascii-table.c avg-with-garbage.txt env-var-set.c functions_ver2.c output.c ascii-table.md case-changer.c exist.sh mph-to-kph.c avg.txt env-var.c functions_ver1.c mph-to-kph_v2.c $cat ascii-table.c #include <stdio.h> int main(void) { char c; for (c = 65; c<=90; c++) { printf(“%c = %d “, c, c); /* upper case */ printf(“%c = %d\n”, c+32, c+32); /* lower case */ } return 0; } $gcc ascii-table.c …
Category Archives: Uncategorized
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!$
Children, obey your parents [in the Lord], for this is right.
Children, obey your parents [in the Lord], for this is right.a2“Honor your father and mother.”b This is the first commandment with a promise, 3“that it may go well with you and that you may have a long life on earth.” https://bible.usccb.org/bible/ephesians/6 Children, obey your parents [in the Lord], for this is right.a2“Honor your father and …
Continue reading “Children, obey your parents [in the Lord], for this is right.”
bible on dependence on god
But seek first the kingdom [of God] and his righteousness,* and all these things will be given you besides. Do not worry about tomorrow; tomorrow will take care of itself. Sufficient for a day is its own evil.
the life that the lord has assigned.
Only, everyone should live as the Lord has assigned, just as God called each one. I give this order in all the churches
on wine in: 1 Timothy 5:23
Stop drinking only water, but have a little wine for the sake of your stomach and your frequent illnesses.
hosea and his wife reunited
1Again the LORD said to me: Go, love a woman who is loved by her spouse but commits adultery; Just as the LORD loves the Israelites, though they turn to other gods and love raisin cakes.*2* So I acquired her for myself for fifteen pieces of silver and a homer and a lethech of barley. …
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