Skip to content

jmcunx/j_lib2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 

Repository files navigation

jmc Library

Note: Starting October 12 2023, Microsoft GitHub is forcing me to use 2FA to access to my repositories. Microsoft wants me to use my Cell Phone or some proprietary application for 2FA, email is not allowed. So updates to this project will no longer occur on GitHub. Updates and full Source can be downloaded from my Gemini Capsule:

  • gemini://gem.sdf.org/jmccue/computer/repository.gmi
  • gemini://sdf.org/jmccue/computer/repository.gmi (mirror)

See gemini wikipedia for clients.

Objects in this library goes back decades, some started out on MS-DOS and a little known Unix called IN/ix (a 16 bit Unix on a proprietary 8086 clone).

To build, execute gen_make.sh to generate a Makefile for most BSD/Linux systems and IBM AIX. makefile.dos can be used for MS-DOS Systems under Microsoft c.

GNU automake only confuses me, so I came up with my own method which is a real hack. But works for me.

Objects included and a brief description:

  • j2_bye_emb(3) -- remove embedded white space

  • j2_bye_last(3) -- remove 'last' character on a string

  • j2_chg_char(3) -- change a specific character

  • j2_clr_str(3) -- clear a string and append NULL

  • j2_count_c(3) -- get count of a specific character

  • j2_date_is_valid(3) -- Validate Date String

  • j2_d_get_yyyy(3) -- Determine the 4 digit year

  • j2_d_init(3) -- Initialize Date/Time structure

  • j2_d_isleap(3) -- Is the year a Leap Year ?

  • j2_dl_fmt(3) -- Format a Date/Time Integer Value for Display

  • j2_dl_split(3) -- Split a Date/Time Integer Value

  • j2_dl_valid(3) -- Validate Date/Time Integer Value

  • j2_ds_fmt(3) -- Format a Date/Time String for Display

  • j2_ds_split(3) -- Split a Date/Time string

  • j2_d_to_sec(3) -- Converts a date to the # of seconds

  • j2_expand_tab(3) -- Expand tabs to spaces in a string

  • j2_f_exist(3) -- see if a file exists

  • j2_file_typ(3) -- determine file type

  • j2_fix_numr(3) -- fix number format

  • j2_get_build(3) -- Returns a string with Library Build Date

  • j2_get_prgname(3) -- get program name from argv

  • j2_getseed(3) -- Get a seed value for rand()

  • j2_is_all_spaces(3) -- is a string all white space ?

  • j2_is_numr(3) -- Is the string all numeric ?

  • j2_is_space_embedded(3) -- Does a string contain any embedded white space ?

  • j2_justleft(3) -- Left Justifies a string

  • j2_randrange(3) -- Get a random number between an Integer Range

  • j2_rtw(3) -- Remove Trailing White Space

  • j2_secs_to_str(3) -- Converts seconds to a "run time" string

  • j2_strlwr(3) -- change a string to all lower case

  • j2_str_to_secs(3) -- Converts a "run time" string to Seconds

  • j2_strupr(3) -- change a string to upper case

  • j2_today(3) -- get current system date/time

  • man_tr.txt -- Used to install Manuals on various Operating Systems

  • makefile.dos -- Microsoft c Makefile for nmake

  • clibopt.txt -- Microsoft c Linker Response File, Compact Model

  • hlibopt.txt -- Microsoft c Linker Response File, Hugh Model

  • llibopt.txt -- Microsoft c Linker Response File, Large Model

  • mlibopt.txt -- Microsoft c Linker Response File, Medium Model

  • slibopt.txt -- Microsoft c Linker Response File, Small Model

  • tlibopt.txt -- Microsoft c Linker Response File, Tiny Model

About

collection of misc functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published