/* ---------- */ /* najihelp.c */ /* ---------- */ /* najitool help */ /* this .c is a part of */ /* najitool version 0.8.1 */ /* from najitool version 0.2.0 and */ /* above najitool will use libnaji */ /* this version uses libnaji 0.6.1 */ /* both najitool and libnaji */ /* are public domain and are */ /* made by the same author */ /* please read license.txt */ /* made by NECDET COKYAZICI */ #include "najitool.h" struct najihelp { char *cmd; char *info; char *usage; char *example; }; struct najihelp helpitems[NAJITOOL_MAX_COMMANDS] = { { "8bit256", "makes a file with the character values 0 to 255 from\n" "start to finish the number of times you specify.", " ", "ten.bin 10" }, { "addim", "makes a multipliction square at the size you specify.", "", "12" }, { "allfiles", "generates every single file ever possible to exist\n" "at a size you specify.", "", "4" }, { "arab2eng", "Arabic to English transliteration system. Makes English\n" "letters out of Arabic letters. Download the transliteration\n" "table from http://najitool.sf.net/ for details.", " ", "arabi.txt eng.txt" }, { "asc2ebc", "convert ASCII format files to EBCDIC format files.", " ", "readme.txt readme.ebc" }, { "asctable", "shows an ASCII table and the decimal, hexidecimal, and binary\n" "values on each line of it from values 32 to 126.", "", "" }, { "ay", "shows the current month in Turkish.", "", "" }, { "ayinkaci", "shows the day of the current month.", "", "" }, { "bigascif", "makes a file with big ASCII art text out of the word or\n" "sentence you specify.", " ", "hello hello.txt" }, { "bigascii", "shows big ASCII art version of the word or sentence you\n" "specify to the screen.", "", "hello" }, { "bin2c", "makes a compilable C programming language source code file\n" "out of any file with the contents of the file in an array.", " ", "mypic.bmp mypic.c my_pic_array" }, { "bin2hexi", "dumps the file you specify in hexidecimal to a new file.", " ", "DigiTvOS.bin DigiTvOS.hex" }, { "bin2text", "makes a copy of the file you specify with only the\n" "text of the file skipping binary characters.", " ", "file.bin file.txt" }, { "blanka", "blanka converts a file to the blanka format. When you convert a file to the\n" "blanka format, depending on the number (decimal value) of an ASCII character,\n" "it makes that many spaces, for example 65 spaces for the capital letter A,\n" "then it makes a newline to seperate the next letter, which could be B, so it\n" "makes 66 spaces, and so on. To convert the file back to its original format,\n" "you could use the unblanka function. unblanka can still change the file back\n" "to its original format if the blanka format file is edited in a certain way,\n" "it is recommended that you only put your own letters, numbers, etc. in the\n" "spaces, and you not add any more spaces or newlines, this can be acheived by\n" "pressing the arrow keys on the keyboard, and not pressing the spacebar or\n" "enter keys, when editing your blanka format file in a text editor. This\n" "is useful, if you want to make a blanka format file with a hidden message.", " ", "myfile.txt secret.txt" }, { "bremline", "makes a copy of a file removing lines\n" "beginning with a certain word or sentence.", " ", "# prog.c prog2.c" }, { "bugun", "shows what the day is today in Turkish.", "", "" }, { "calc", "a calculator.", "", "" }, { "cat_head", "shows the number of first lines in the file you specify.", " ", "readme.txt 6" }, { "cat_tail", "shows the number of last lines in the file you specify.", " ", "readme.txt 5" }, { "cat_text", "Shows only the text of a file to screen skiping binary\n" "characters. Accepts input from stdin (standard input).", "\nnajitool cat_text ", "\nnajitool cat_text a.out" }, { "catrandl", "shows a random line of a text file.", "", "foodlist.txt" }, { "ccompare", "compares two files and still continues when differences are encountered.", " ", "a.out a.bin" }, { "cfind", "search each line for text and echo it,\n" "displays how many lines contained the text.", " ", "file.txt Hello" }, { "cfindi", "search each line for text and echo it (case insensitive),\n" "displays how many lines contained the text.", " ", "file.txt hello" }, { "charaftr", "makes a copy of the file with the specified character after each byte.", " ", "data.txt newdata.txt \" \"" }, { "charbefr", "makes a copy of the file with the specified character before each byte.", " ", "data.txt newdata.txt x" }, { "charfile", "makes a file containing a single character you specify the\n" "amount of times you specify.", " ", "aaa.txt 1000 a" }, { "charwrap", "wraps characters to the specified width.", " ", "a.out a.70 70" }, { "chchar", "changes the specified character in a file to a new character.", " ", "readme.txt readmeo.txt 0 O" }, { "chchars", "changes the specified characters in a file to new characters.", " ", "readme.txt funny.txt \"abc\" \"@8<\"" }, { "chstr", "changes the specified string in a text file to a new string.", " ", "input.txt output.txt string new_string" }, { "coffset", "shows the characters in a file from the offset (start and end)\n" "you specify to the screen.", " ", "a.out 30 213" }, { "compare", "compares two files.", " ", "hi.txt hello.txt" }, { "copyfile", "copies a file.", " ", "license.txt lbackup.txt" }, { "copyoffs", "copies the characters in a file from the offset (start and end)\n" "you specify to a new file.", " ", "a.out 10 345 a.bin" }, { "copyself", "copies the najitool program to a new name.", "", "naji2" }, { "cpfroml", "Makes a copy of a text file copying only from the specified line number.\n" "This is useful if you get an error importing a large MySQL .sql file and\n" "it stops with and error giving you the line number the error occured, you\n" "can use this to make a copy of the .sql file to continue from the error.", " ", "1032 database.sql dbconerr.sql" }, { "cptiline", "Makes a copy of a text file copying only up to the specified line number.", " ", "10 readme.txt read10l.txt" }, { "credits", "shows the names and details of najitool and\n" "libnaji contributors and their original author.", "", "" }, { "database", "makes a text file with a list of people and their details.", "", "" }, { "datetime", "shows the current date and time.", "", "" }, { "dayofmon", "shows the day of the current month.", "", "" }, { "dos2unix", "converts DOS/Windows text files to UNIX format.", " ", "hello.txt HELLO" }, { "downlist", "Makes a HTML file from a text file with a list of files to download.", " ", "download.txt download.htm" }, { "dumpoffs", "shows the hexidecimal values of characters in a file\n" "from the offset (start and end) you specify to the screen.", " ", "a.out 30 213" }, { "e2ahtml", "English to Arabic transliteration system. Makes Arabic\n" "letters out of English letters. This version does that with\n" "a plain text file to a HTML file. Download the transliteration\n" "table from http://najitool.sf.net/ for details.", " ", "enleters.txt arabic.htm" }, { "ebc2asc", "convert EBCDIC format files to ASCII format files.", " ", "readme.ebc readme.txt" }, { "eng2arab", "English to Arabic transliteration system. Makes Arabic\n" "letters out of English letters. Download the transliteration\n" "table from http://najitool.sf.net/ for details.", " ", "english.txt arabiyya.txt" }, { "engnum", "a list of numbers in English words from 1 to 9999.", "", "" }, { "eremline", "makes a copy of a file removing lines\n" "ending with a certain word or sentence.", " ", "\"*/\" prog2.c prog3.c" }, { "f2lower", "makes a copy of a file with all the\n" "capital letters turned into small letters.", " ", "capitals.txt small.txt" }, { "f2upper", "makes a copy of a file with all the\n" "small letters turned into capital letters.", " ", "small.txt big.txt" }, { "filbreed", "breeds two files i.e. the first byte of the first file\n" "then the first byte of the second file are added to the\n" "new file and the following bytes one file after another.", " ", "in.txt in2.txt out.txt" }, { "file2bin", "makes a file into a stream of 1 and 0 binary numbers.", " ", "readme.txt binary.txt" }, { "file2dec", "makes a file into a stream of decimal numbers.", " ", "readme.txt decimal.txt" }, { "file2hex", "makes a file into a stream of hexidecimal values.", " ", "readme.txt hex.txt" }, { "filechop", "splits a file into two new files at the offset you specify.", " ", "2000000000 hello.vob hello1.vob hello2.vob" }, { "filejoin", "joins two files into a new file.", " ", "hello1.vob hello2.vob hello.vob" }, { "fillfile", "changes every character in a file to the character you specify.", " ", "hello.txt x" }, { "find", "search each line for text and echo it.", " ", "file.txt Hello" }, { "findi", "search each line for text and echo it (case insensitive).", " ", "file.txt hello" }, { "flipcopy", "\ncopies while flipping the bits of each byte, for example\n" "11110000 becomes\n" "00001111\n" "and\n" "01010101 becomes\n" "10101010 etc", " ", "hi.txt hifliped.txt" }, { "freverse", "makes a reversed copy of the file, the start of\n" "the file becomes the end of the file and vice versa.", " ", "readme.txt emdear.txt" }, { "fswpcase", "makes a copy of a file with the case of letters swapped, i.e.\n" "if it's capital letters, they become small letters and vice versa.", " ", "ReadMe.txt rEAD_mE.txt" }, { "ftothe", "makes a copy of a file adding the text \" to the\"\n" "after every character except the last character.", " ", "readme.txt readtoda.txt" }, { "genhelp", "generates the najitool help file.", "", "" }, { "genlic", "generates the najitool and libnaji license.", "", "" }, { "getlinks", "saves only the links in a HTML file to a text file.", " ", "yo.htm yo_links.txt" }, { "help", "Help for najitool. Shows a list of najitool commands,\n" "shows a list of help catagories, gives detailed\n" "information on a particular najitool command.", "\nnajitool help \nnajitool help ", "\nnajitool help commands\nnajitool help bin2c" }, { "hexicat", "dumps the file you specify in hexidecimal to screen with the\n" "displayable text characters on the right.", "", "a.out" }, { "hilist", "Makes a HTML file from a text with a list of image names, showing\n" "the images when the HTML file is opened in a web browser.", " ", "pic_list.txt gallery.htm" }, { "hmaker", "makes function prototypes of a .c and shows to the screen.", "", "mycode.c" }, { "hmakerf", "makes a .h file with the function prototypes of a .c file.", " ", "mycode.c mycode.h" }, { "html_db", "makes a HTML file with a list of people and their details.", "", "" }, { "html2txt", "makes a text file out of a HTML file.", " ", "homepage.htm homepage.txt" }, { "htmlfast", "makes a HTML file out of a text file preserving the spaces.", " ", "asciiart.txt asciiart.html" }, { "htmlhelp", "generates the najitool help in HTML format.", "", "" }, { "kitten", "Shows the contents of a file to the screen.\n" "Accepts input from stdin (standard input).", "\nnajitool kitten ", "\nnajitool kitten readme.txt" }, { "lcharvar", "shows every single combination variation of a sentence or word\n" "starting from the left to the screen.", "", "\"hello world\"" }, { "leetfile", "converts a normal text file into a \"hacker language\" text file.", " ", "readme.txt w00t.txt" }, { "leetstr", "shows a \"hacker language\" version of a sentence or word you give it.", "", "\"hello how are you doing today?\"" }, { "length", "convert between the most popular length formats:\n" "mm, cm, inches, meters, feet, yards, km, miles.", "", "" }, { "lensortl", "sort lines in a text file by length, longest first.", " ", "file1.txt file2.txt" }, { "lensorts", "sort lines in a text file by length, shortest first.", " ", "file2.txt file3.txt" }, { "license", "shows the najitool and libnaji license to the screen.", "", "" }, { "linesnip", "make a copy of a file with the amount of characters\n" "you specify to be removed from the front of each line.", " ", "4 numbered.c filtered.c" }, { "makarray", "makes a char *[] array out of a text file\n" "with each item on a new line.", " ", "zoolist.txt zoo.c zoo_animals" }, { "mathgame", "a fun and educational math game.", "", "" }, { "mergline", "merges the lines of two files into a new file and lets you\n" "specify text that comes at the beginning and end of each line.", " ", "namlower.txt namupper.txt rename.sh \"mv -i \" \"\"" }, { "mkpatch", "makes a patch file to be used with qpatch out of differences\n" "between two files of the same size.", " ", "cool.exe cool2.exe cool.nqp" }, { "month", "shows the current month.", "", "" }, { "mp3split", "split CBR (Constant Bit Rate) MP3 file\n" "from to in seconds range.", " ", "1 100 test.mp3 test2.mp3" }, { "mp3taged", "edit MP3 tag information, only ID3v1 tags supported in this version.", "{ }..\n" "\nTag (ID3v1 only supported):\n" "\ttitle\t\t\t- specify song title\n" "\tartist\t\t\t- specify artist\n" "\talbum\t\t\t- specify album\n" "\tyear\t\t\t- specify year\n" "\tcomment\t\t\t- specify comment\n" "\ttrack\t\t\t- specify track number\n", "artist hello test.mp3" }, { "mp3tagnf", "shows MP3 tag information.", "", "lecture.mp3" }, { "najcrypt", "naji interactive encryption/decryption function.", "", "" }, { "naji_bmp", "generates lots of predefined .BMP file images.", "", "" }, { "najirle", "naji RLE (Run-Lengh Encoding) compression on a single file.\n" "Works best with files with a lot of repeated characters, such as wave files.", " ", "uncomped.wav uncomped.nar" }, { "najisum", "naji checksum function.", "", "checksum.txt" }, { "numlines", "add numbers to the beginning of every line.", " ", "list.txt numlist.txt" }, { "onlalnum", "makes a copy of a file copying only letters and numbers.", " ", "a.out filtered.bin" }, { "onlalpha", "makes a copy of a file copying only letters.", " ", "a.out filtered.bin" }, { "onlcntrl", "makes a copy of a file copying only control characters.", " ", "a.out filtered.bin" }, { "onldigit", "makes a copy of a file copying only numbers.", " ", "a.out filtered.bin" }, { "onlgraph", "makes a copy of a file copying only visible\n" "printing characters, spaces are not included.", " ", "a.out filtered.bin" }, { "onllower", "makes a copy of a file copying only lower case letters.", " ", "a.out filtered.bin" }, { "onlprint", "makes a copy of a file copying only printing\n" "characters, which includes the space character.", " ", "a.out filtered.bin" }, { "onlpunct", "makes a copy of a file copying only punctuation.", " ", "a.out filtered.bin" }, { "onlspace", "makes a copy of a file copying only whitespace, that is,\n" "carriage return, newline, form feed, tab, vertical tab, or space.", " ", "a.out filtered.bin" }, { "onlupper", "makes a copy of a file copying only upper case letters.", " ", "a.out filtered.bin" }, { "onlxdigt", "makes a copy of a file copying only\n" "hexadecimal digits, this includes 0-9 a-f A-F.", " ", "a.out filtered.bin" }, { "onlycat", "shows the contents of the file you specify\n" "using only the characters you specify.", " ", "readme.txt \"abc\"" }, { "onlychar", "makes a copy of the file you specify using only\n" "the characters you specify.", " ", "readme.txt abc.txt \"abc\"" }, { "patch", "manually patch a file in an interactive text based interface.", "", "cool2.exe" }, { "printftx", "makes a copy of a text file into a .c file as printf statements.", " ", "shortdoc.txt shortdoc.c" }, { "putlines", "makes a copy of the file you specify with text you specify for\n" "the beginning and end of each line.", " ", "input.txt output.txt \"hello\" \"world\"" }, { "qcrypt", "encrypts or decrypts a file to a new file, this does both\n" "encryption and decryption.", " ", "secret.txt what.txt" }, { "qpatch", "\npatches a file from a patch file, it must be in format:\n" "offset\n" "value\n" "offset\n" "value\n" "etc.\n" "in plain ASCII numbers, offset being the place in the file you want\n" "to patch and value being the new value (a value between 0-255).", " ", "cool.exe cool.nqp" }, { "randkill", "changes every character in a file to a random character\n" "and then deletes it, this is good for secure deletion.", "", "secret.txt" }, { "rbcafter", "makes a copy of the file with a random\n" "binary character after each line.", " ", "picture.raw newpic.raw" }, { "rbcbefor", "makes a copy of the file with a random\n" "binary character before each line.", " ", "picture.raw newpic.raw" }, { "rcharvar", "shows every single combination variation of a sentence or word\n" "starting from the right to the screen.", "", "\"hello world\"" }, { "remline", "makes a copy of a file removing lines\n" "containing a certain word or sentence.", " ", "\"badword\" bad.txt clean.txt" }, { "repcat", "repeats each character in a file the\n" "number of times you specify to the screen.", " ", "hmm.txt 3" }, { "repcatpp", "give it a start value and it repeats each character in a\n" "file then repeats the next character in the file more amount\n" "of times than the previous character to the screen.", " ", "hmmmmmmm.txt 3" }, { "repchar", "repeats each character in the file you specify the\n" "number of times you specify to a new file.", " ", "hello.wav helloslow.wav 1" }, { "repcharp", "give it a start value and it repeats each character in a\n" "file then repeats the next character in the file more amount\n" "of times than the previous character to a new file.", " ", "hi.wav hislower.wav 1" }, { "revcat", "shows a file reversed to the screen.", "", "reverse.txt" }, { "revlines", "reverses every line the file you specify to a new file.", " ", "input.txt output.txt" }, { "rmunihtm", "deletes the files that unihtml generates.", "", "" }, { "rndbsout", "puts random characters from value 0 to 255 to the standard output\n" "(usually the screen) at the size you specify.", "", "100" }, { "rndffill", "changes every character in a file to a random character.", "", "todelete.txt" }, { "rndtsout", "puts random text characters to the standard output\n" "(usually the screen) at the size you specify.", "", "64" }, { "rndbfile", "generates a file with random characters from value 0 to 255\n" "at the size you specify.", " ", "random.bin 5435346" }, { "rndtfile", "generates a file with random text characters at the size you specify.\n" "Useful for generating secure random passwords.", " ", "random.txt 5435346" }, { "rrrchars", "random range repeat characters.", " ", "test.wav test2.wav 1 10" }, { "rstrach", "makes a copy of a file with random text at\n" "the size you specify after each character.", " ", "10 test.bin ra10test.bin" }, { "rstrbch", "makes a copy of a file with random text at\n" "the size you specify before each character.", " ", "10 test.bin rb10test.bin" }, { "rtcafter", "makes a copy of the file with a random text character after each line.", " ", "data.txt newdata.txt" }, { "rtcbefor", "makes a copy of the file with a random text character before each line.", " ", "data.txt newdata.txt" }, { "saat", "shows the time.", "", "" }, { "saatarih", "shows the current date and time in Turkish.", "", "" }, { "showline", "shows the contents of a line you specify.", " ", "readme.txt 3" }, { "skipcat", "shows the contents of a file to the screen skipping\n" "the characters you specify. Useful for seeing how\n" "a file would look without certain characters", " ", "readme.txt \"#$&*\"" }, { "skipchar", "makes a copy of the file you specify skipping\n" "the characters you specify.", " ", "readme.txt readme2.txt \"#$&*\"" }, { "skipstr", "makes a copy of a file skipping the specified string.", " ", "input.txt output.txt \"badword\"" }, { "skpalnum", "makes a copy of a file skipping letters and numbers.", " ", "a.out filtered.bin" }, { "skpalpha", "makes a copy of a file skipping letters.", " ", "a.out filtered.bin" }, { "skpcntrl", "makes a copy of a file skipping control characters.", " ", "a.out filtered.bin" }, { "skpdigit", "makes a copy of a file skipping numbers.", " ", "a.out filtered.bin" }, { "skpgraph", "makes a copy of a file skipping visible\n" "printing characters, spaces are not included.", " ", "a.out filtered.bin" }, { "skplower", "makes a copy of a file skipping lower case letters.", " ", "a.out filtered.bin" }, { "skpprint", "makes a copy of a file skipping printing\n" "characters, which includes the space character.", " ", "a.out filtered.bin" }, { "skppunct", "makes a copy of a file skipping punctuation.", " ", "a.out filtered.bin" }, { "skpspace", "makes a copy of a file skipping whitespace, that is, carriage\n" "return, newline, form feed, tab, vertical tab, or space.", " ", "a.out filtered.bin" }, { "skpupper", "makes a copy of a file skipping upper case letters.", " ", "a.out filtered.bin" }, { "skpxdigt", "makes a copy of a file skipping\n" "hexadecimal digits, this includes 0-9 a-f A-F.", " ", "a.out filtered.bin" }, { "strachar", "makes a copy of a file with the specified text after each character.", " ", "\" HELLO \" test.txt hitest.txt" }, { "strbchar", "makes a copy of a file with the specified text before each character.", " ", "\" HELLO \" test.txt hitest.txt" }, { "strbline", "puts a word or sentence on the beginning of every line.", " ", "hi.txt new_hi.txt \"hello start\"" }, { "streline", "puts a word or sentence on the end of every line.", " ", "hi.txt new_hi.txt \"hello end\"" }, { "strfile", "makes a file out of a string (word or sentence) and repeats the\n" "string in the file that is made the number of times you specify.", " ", "what.txt 11 \"what is this?\"" }, { "swapfeb", "swaps every other byte of two files", " ", "in.txt in2.txt out.txt" }, { "systemdt", "shows the current date and time (asctime format).", "", "" }, { "tabspace", "converts tabs to spaces with the number of spaces for\n" "a tab you specify.", " ", "4 hello.txt hi_notab.txt" }, { "telltime", "shows the time.", "", "" }, { "today", "shows what day it is today.", "", "" }, { "tothe", "Adds the text \" to the\" after every character\n" "except the last character and displays it to the screen.", "", "NAJI" }, { "ttt", "A fun Tic-Tac-Toe game with clever AI.\n" "This game is also called Norts and Crosses in the UK.", "", "" }, { "turnum", "a list of numbers in Turkish words from 1 to 9999.", "", "" }, { "txt2html", "makes a HTML file out of a text file.", " ", "readme.txt readme.htm" }, { "unihtml", "generates HTML pages with every possible Unicode letter/symbol.", "", "" }, { "unajirle", "decompresses a file compressed with najirle.", " ", "uncomped.nar uncomped.wav" }, { "unblanka", "converts a blanka format file back to its original format.", " ", "secret.txt myfile2.txt" }, { "unix2dos", "converts UNIX text files to DOS/Windows format.", " ", "BYE bye.txt" }, { "uudecode", "UUDecode a UUEncoded file.", " ", "hello.uue hello.exe" }, { "uuencode", "UUEncode a binary file to be easily sent with e-mail\n" "or posted on forums, etc.", " ", "program.exe program.uue" }, { "wordline", "puts words in sentences in a new line like a word list.", " ", "license.txt licelist.txt" }, { "wordwrap", "wraps text to new lines for files that have all the text on one line.", " ", "readme.txt read.txt" }, { "wrdcount", "counts the number of words in a text file and displays the number.", "", "my_essay.txt" }, { "year", "shows the current year.", "", "" }, { "yil", "shows the current year.", "", "" }, { "zerokill", "changes every character in a file to the hexidecimal value 00\n" "and then deletes it, this is good for secure deletion.", "", "secret.txt" } }; void najitool_help_commands(void) { int i; int j; int items = 0; int len = 0; int spaces = 0; int lines = 0; printf("\n "); for(i=0; i 0) for (j=0; j\n\n"); fprintf(naji_output, " najitool 0.8.1 Help Document \n\n"); fprintf(naji_output, "\n\n"); fprintf(naji_output, "\n\n"); fprintf(naji_output, "
\n\n"); fprintf(naji_output, "

najitool 0.8.1 Help Document

\n\n"); fprintf(naji_output, "http://najitool.sf.net/

\n\n"); fprintf(naji_output, "Written by NECDET COKYAZICI

\n\n\n"); fprintf(naji_output, "

\n\n"); fprintf(naji_output, "\n
\n"); fprintf(naji_output, "%i TOTAL NUMBER OF NAJITOOL COMMANDS:
\n", NAJITOOL_MAX_COMMANDS); fprintf(naji_output, "\n
\n"); for (i=0; i"); fprintf(naji_output, "COMMAND: %s\n\n

", helpitems[i].cmd); fprintf(naji_output, "DESCRIPTION:
\n"); for (j=0; helpitems[i].info[j] != '\0'; j++) { if (helpitems[i].info[j] == '\n') fprintf(naji_output, "\n
"); else if (helpitems[i].info[j] == '<') fprintf(naji_output, "<"); else if (helpitems[i].info[j] == '>') fprintf(naji_output, ">"); else fputc(helpitems[i].info[j], naji_output); } fprintf(naji_output, "\n\n

"); fprintf(naji_output, "USAGE:
\nnajitool"); fprintf(naji_output, " %s ", helpitems[i].cmd); for (j=0; helpitems[i].usage[j] != '\0'; j++) { if (helpitems[i].usage[j] == '\n') fprintf(naji_output, "\n
"); else if (helpitems[i].usage[j] == '<') fprintf(naji_output, "<"); else if (helpitems[i].usage[j] == '>') fprintf(naji_output, ">"); else fputc(helpitems[i].usage[j], naji_output); } fprintf(naji_output, "\n\n

"); fprintf(naji_output, "EXAMPLE:
\nnajitool"); fprintf(naji_output, " %s ", helpitems[i].cmd); for (j=0; helpitems[i].example[j] != '\0'; j++) { if (helpitems[i].example[j] == '\n') fprintf(naji_output, "\n
"); else if (helpitems[i].example[j] == '<') fprintf(naji_output, "<"); else if (helpitems[i].example[j] == '>') fprintf(naji_output, ">"); else fputc(helpitems[i].example[j], naji_output); } fprintf(naji_output, "\n\n

"); fprintf(naji_output, "\n


\n"); } fprintf(naji_output, "\n\n\n\n"); fprintf(naji_output, "\n\n"); najoutclose(); exit(0); }