repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chlds/util | lib/car/obj/src/n_putch.c | <gh_stars>0
/* **** Notes
Count letters to the terminating null character.
*/
# define C_CODE_STDS
# define CAR
# include "../../../incl/config.h"
signed(__cdecl n_putch(signed(n),signed(letter))) {
auto signed r;
if(n<(0x00)) return(0x00);
if(!n) return(0x00);
r = _putch(letter);
if(!(EOF^(r))) {
printf("%s", ... |
chlds/util | lib/car/obj/src/coord_beta.c | <filename>lib/car/obj/src/coord_beta.c
/*
Set CLI_IN to get the current cursor position or CLI_OUT to set the cursor position at argument io.
Remarks:
Refer at fn. cli_init_property.
The beta edition is for Windows 10 64-bit OS.
*/
# define CAR
# include "../../../incl/config.h"
# include <windows.h>
signed(__cdec... |
chlds/util | lib/car/obj/src/cals_parse.c | /* **** Notes
Parse an event.
Remarks:
Currently under construction
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_parse(signed char(*content),cals_event_t(*argp))) {
auto signed char *b;
auto time_t t;
auto signed i,r;
auto signed short mo;
auto signed short flag;
if(!c... |
chlds/util | lib/car/obj/src/cals_cache_events.c | <reponame>chlds/util<filename>lib/car/obj/src/cals_cache_events.c
/* **** Notes
Cache
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_events(cals_event_t(*cache),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto signed i,r;
if(!cache) return(0x00);
if(!argp) return(... |
chlds/util | lib/car/obj/src/cals_cache_periodic_events_r.c | /* **** Notes
Cache
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_periodic_events_r(signed short(n),cals_event_t(*cache),cals_roll_t(*cached),cals_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto cals_roll_t roll;
auto time_t t;
auto signed i,r;
auto si... |
chlds/util | lib/incl/cals_f.h | <gh_stars>0
/* cals_f.h */
signed(__cdecl chrono_date_r(signed(arg),signed char(**di),signed short(*si)));
signed(__cdecl chrono_date(signed char(**di),time_t(*si)));
signed(__cdecl cals_date(signed short(**di),time_t(*si)));
signed(__cdecl chrono_time_r(signed(arg),signed char(**di),signed short(*si)));
signed(__cdec... |
chlds/util | lib/car/obj/src/indent_b.c | /* **** Notes
Indent.
Remarks:
Return (0x01) on success.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl indent_b(signed short(arg/* align */))) {
auto signed r;
if(arg<(0x00)) return(0x00);
if(!arg) return(0x00);
if(0x08<(arg)) arg = (0x08);
return(cli_indent(cli_reckon(arg)));
}
|
chlds/util | lib/car/obj/src/wrap_r.c | /* **** Notes
Count.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl wrap_r(signed short(arg),signed(*cache),signed char(**argp))) {
auto signed r;
if(arg<(0x01)) return(0x00);
if(!cache) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
r = ct(*argp);
if(!r) return(r);
*cache... |
chlds/util | lib/cbr/obj/src/cli_write.c | <reponame>chlds/util
/*
Write.
Along with C and Windows libraries
Remarks:
Refer at fn. cli_spool_beta, fn. cli_book, fn. cli_save, fn. cli_parse or..
*/
# define CBR
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include <fcntl.h>
# include <sys/stat.h>
# include <sys/types.h>
# include "../../../... |
chlds/util | lib/car/obj/src/cli_refresh.c | /*
Output characters based on UTF-8 to the console screen.
Remarks:
Return the number of bytes for output characters (..or the number of output characters).
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_refresh(cli_text_t(*argp))) {
auto signed char *b;
auto cli_rule_t ... |
chlds/util | lib/car/obj/src/cals_know_date.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Confirm.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_know_date(signed short(di),signed short(mo),signed short(yr))) {
auto signed short ad_h = (2100);
auto signed short ad_l = (1970);
auto struct tm *tp;
auto time_t t;
auto ... |
chlds/util | lib/car/obj/src/cals_display_events_r.c | <reponame>chlds/util
/* **** Notes
Display events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_events_r(time_t(prev),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short yr,mo,di;
auto signed short ... |
chlds/util | lib/incl/cli_flag.h | # define CLI_IRR (0x01)
# define CLI_INIT (0x02)
# define CLI_MORPH (0x04)
# define CLI_BACKUP (0x08)
# define CL_SEARCH (0x10)
# define CL_REPLACE (0x20)
// # define CLI_APPEND (0x20)
# define CL_QUIT (0x40)
# define CLI_MONITOR (0x80)
# define CLI_ALREADY_EXIST (0x100)
# define CLI_OVERWRITE (0x200)
# define CLI_REFR... |
chlds/util | lib/cbr/obj/src/cli_coord_page_beta.c | /*
Coordinate and output a page to the console screen.
Remarks:
Return the number of output pages.
*/
# define CBR
# define CLI_W32
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_coord_page_beta(signed short(flag),cli_page_t(*page),CLI_W32_STAT(*argp))) {
/* **** DATA, BSS and STACK */... |
chlds/util | lib/car/obj/src/cue_back_r.c | /*
Cue backward.
Remarks:
Based on UTF-8
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue_back_r(signed short(flag),signed char(*sym),signed char(*cache),signed char(*argp))) {
auto signed char *b;
auto signed r;
auto signed short BYTE_ONE = (0x01);
auto signed short BYTE_MUL = (0x02);
auto s... |
chlds/util | bin/obj/src/ssiz.c | /* **** Notes
Look the stack size
e.g.,
> cl -c ssiz.c
> link -stack:8192000 ssiz.obj
*/
# define C_CODE_STDS
# include "./../../../lib/incl/config.h"
# include <windows.h>
/* **** entry point */
signed(__cdecl main(signed char(argc),signed char(**argv),signed char(**envp))) {
/* **** DATA */
auto long long unsig... |
chlds/util | lib/car/obj/src/cals_refer_daily_events.c | <filename>lib/car/obj/src/cals_refer_daily_events.c
/* **** Notes
Refer
Remarks:
Refer at fn. cals_refer_events_internal.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_refer_daily_events(signed short(arg),cals_event_t(*cache),cals_t(*argp))) {
auto struct tm *tp;
auto ti... |
chlds/util | lib/car/obj/src/cv_wk_mo_r.c | <filename>lib/car/obj/src/cv_wk_mo_r.c
/* **** Notes
Convert into seconds of a first day of the first week.
Remarks:
Refer at <corecrt_wtime.h>
*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_wk_mo_r(signed short(wk),signed short(current_month),time_t(*di),time_t(si))) {
auto ... |
chlds/util | lib/car/obj/src/cv_ord.c | <gh_stars>0
/* **** Notes
Check the ordinal number.
//*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cv_ord(signed(arg),signed char(**table),signed(*retv),signed char(*argp))) {
auto signed i,r;
auto signed(__cdecl*f)(signed char(**table),signed(*retv),signed char(*argp));
auto signed(__cdecl*... |
chlds/util | lib/car/obj/src/cals_count_scheduled_annual_events.c | <reponame>chlds/util
/* **** Notes
Count periodic events scheduled for a week.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_count_scheduled_annual_events(signed(*cache),cals_event_t(*term),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t t;
... |
chlds/util | lib/car/obj/src/cals_entry.c | /* **** Notes
Entry an event.
Remarks:
Currently under construction
//*/
# define CALEND
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cals_entry(signed char(**argv),cals_event_t(*argp))) {
auto signed short *w;
auto signed char *b;
auto time_t t;
auto signed i,r;
auto signed ... |
chlds/util | lib/car/obj/src/cli_init_b_r.c | <filename>lib/car/obj/src/cli_init_b_r.c
/* **** Notes
Initialise.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cli_init_b_r(signed(cache),signed(arg),signed char(**argp))) {
auto signed char *b;
if(arg<(0x01)) return(0x00);
if(!argp) return(0x00);
--arg;
if(cache) {
embed(0x00,*(arg+(argp... |
chlds/util | lib/car/obj/src/cli_restore_text_attributes_beta.c | /* **** Notes
Restore
Remarks:
Refer at fn. cli_change_text_attributes_beta.
*/
# define CAR
# include "./../../../incl/config.h"
# include <stdio.h>
# include <windows.h>
signed(__cdecl cli_restore_text_attributes_beta(cli_property_t(*argp))) {
auto signed i,r;
auto signed short flag;
if(!argp) return(0x00);
i... |
chlds/util | lib/car/obj/src/cals_outv_legible_r.c | <reponame>chlds/util
/* **** Notes
Output.
Remarks:
A character string should be terminated with the null character.
Refer at fn. cv_ww, fn. read_b and fn. rm_crlf to replace CR/LF with the null character.
Return the number of rows output for characters (..or the number of characters).
*/
# define CAR
# include "..... |
chlds/util | bin/obj/src/lit.c | /* **** Notes
Display one line or about 1024 bytes in UTF-8.
*/
# define C_CODE_STDS
# define CALEND
# define CAR
# include "./../../../lib/incl/config.h"
signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
auto signed char *b;
auto signed char *path;
auto signed offset;
auto signed i,r;
a... |
chlds/util | lib/car/obj/src/cals_count_scheduled_monthly_events_in_days.c | <reponame>chlds/util
/* **** Notes
Count periodic events scheduled for a week.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_count_scheduled_monthly_events_in_days(signed(*cache),cals_event_t(*term),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto t... |
chlds/util | lib/cbr/obj/src/cli_ctrl_e_beta.c | /*
Press <Ctrl-E> to invoke the function.
Along with C and Windows libraries
Remarks:
Refer at util/lib/obj/src/cli_io_beta.c
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_ctrl_e_beta(CLI_W32_STAT(*argp))) {
/*... |
chlds/util | lib/car/obj/src/cmpr_partially.c | /* **** Notes
Partially compare strings
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cmpr_partially(signed(*cache),signed char(*di),signed char(*si))) {
auto signed r;
if(!cache) return(0x00);
if(!di) return(0x00);
if(!si) return(0x00);
*cache = (~0x00);
return(cmpr_partially_r(cache,di,si)... |
chlds/util | lib/car/obj/src/cals_modify_time_of_events_in_days.c | <filename>lib/car/obj/src/cals_modify_time_of_events_in_days.c<gh_stars>0
/* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_modify_time_of_events_in_days(cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t t;
auto signe... |
chlds/util | lib/car/obj/src/wp_argt_r.c | /* **** Notes
Count.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl wp_argt_r(signed short(arg),signed(*cache),signed char(**argp))) {
auto signed r;
if(arg<(0x01)) return(0x00);
if(!cache) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
r = ct(*argp);
if(!r) return(r);
*ca... |
chlds/util | lib/car/obj/src/init_pages.c | /* **** Notes
Initialise
Remarks:
Refer at fn. cli_restore.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl init_pages(signed(arg),page_t(*argp))) {
auto signed char *b;
auto rule_t *rule;
auto page_t *page;
auto signed r;
auto signed short flag;
if(!argp) return(0x00);
// initialise
flag = ... |
chlds/util | lib/car/obj/src/cli_message.c | /* **** Notes
Output an message.
Remarks:
Along with C library
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_message(signed(arg),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char *b;
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT */
if... |
chlds/util | lib/car/obj/src/rd_s_r.c | /* **** Notes
Read.
//*/
# define CAR
# include <stdio.h>
# include <errno.h>
# include "../../../incl/config.h"
signed(__cdecl rd_s_r(signed char(**di),signed(fd))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto signed buff = (102400);
if(!di) return(0x00);
if(fd<(0x00)) return(0x00);
r = ... |
chlds/util | lib/car/obj/src/out_lines.c | <gh_stars>0
/* **** Notes
Output.
Remarks:
A character string should be terminated with the null character.
Refer at fn. cv_ww, fn. read_b and fn. rm_crlf to replace CR/LF with the null character.
Return the number of rows output for characters.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl o... |
chlds/util | lib/car/obj/src/cue_fd_r.c | /*
Cue.
Remarks:
Basically return a negative value on failure.
Based on UTF-8
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue_fd_r(signed(*argp),signed(offset),signed(fd))) {
auto signed char *b;
auto signed d;
auto signed r;
auto signed short flag;
if(!argp) return(0x00);
if(offset<(0x01))... |
chlds/util | lib/cbr/obj/src/cli_history.c | /* **** Notes
Take snapshots to redo and undo.
Along with C library
Remarks:
Call fn. cli_book before invoking the function to take the content out of workspace.
Refer at fn. cli_spool_beta, fn. cli_kb_beta and fn. cli_book.
Build a doubly linked list
Based on UTF-8
*/
# define CBR
# define CLI_W32
# include <con... |
chlds/util | lib/car/obj/src/c_getch.c | <filename>lib/car/obj/src/c_getch.c
/*
Fn. getch for Linux
*/
// # include <termios.h>
# include <stdio.h>
// # include "./incl/car.h"
signed(__cdecl c_getch(signed(arg))) {
/*
auto signed fd;
auto signed r;
auto struct termios current,old;
fd = (0x00);
tcgetattr(fd,&old);
current = (old);
current.c_lflag &= (~ICAN... |
chlds/util | lib/car/obj/src/cf_f_extensions.c | /* **** Notes
Confirm file name extensions.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cf_f_extensions(signed char(*cache),signed char(*argp))) {
auto signed char *b;
auto signed i,r;
if(!cache) return(0x00);
if(!argp) return(0x00);
r = ct(cache);
if(!(r<(ct(argp)))) return(0x00);
b = (... |
chlds/util | bin/obj/src/k.c | /* **** Notes
Check values input in Unicode.
*/
# include <conio.h>
# include <stdio.h>
signed(__cdecl main(void)) {
auto signed SECOND = (0xDC00);
auto signed FIRST = (0xD800);
auto signed CR = (0x0D);
auto signed c,i,r;
system("cls");
printf("\n");
printf("%s\n","Check values input in Unicode and then press <E... |
chlds/util | bin/obj/src/k2.c | <filename>bin/obj/src/k2.c<gh_stars>0
/* **** Notes
Check values input in Unicode.
*/
# define CAR
# include <stdio.h>
# include "../../../lib/incl/config.h"
signed(__cdecl main(void)) {
auto signed SECOND = (0xDC00);
auto signed FIRST = (0xD800);
auto signed CR = (0x0D);
auto signed short buff[0x04] = {
(signed ... |
chlds/util | lib/car/obj/src/cv_lf.c | <reponame>chlds/util
/* **** Notes
Convert the code of line break into LF.
//*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cv_lf(signed char(*cache/* an extension for backups */),signed char(*argp))) {
auto signed char *b;
auto page_t page;
auto signed i,r;
auto signed short... |
chlds/util | lib/car/obj/src/str_b.c | /* **** Notes
Store bytes.
Remarks:
Code of line break: CRLF, LF or (0x00).
Create, append or truncate.
//*/
# define CAR
# include <stdio.h>
# include <time.h>
# include <fcntl.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <errno.h>
# include "../../../incl/config.h"
signed(__cdecl str_b(signed(arg/... |
chlds/util | lib/car/obj/src/nsort.c | <reponame>chlds/util<filename>lib/car/obj/src/nsort.c
/* **** Notes
Sort e.g., using with fn. bsort()
arg: Put the numbre of elements of an array for values at.
argp: Put the leading address of an array for values at.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl nsort(signed(arg),signed(*argp)... |
chlds/util | lib/car/obj/src/clip_b.c | <filename>lib/car/obj/src/clip_b.c
/* **** Notes
Clip.
Remarks:
Return an offset number on success.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl clip_b(signed(arg),signed char(**argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(arg<(0x00)) return(0x00);
if(!argp) ret... |
chlds/util | lib/car/obj/src/rect_b_r_r.c | <gh_stars>0
/*
Rectangle.
Remarks:
Only in the Virtual Terminal
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl rect_b_r_r(signed char(*y),signed char(*x))) {
auto signed char *csi = ("\033[");
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!y) return(0x00);
if(!x) return(0x00... |
chlds/util | lib/car/obj/src/cals_display_events_r_r.c | <reponame>chlds/util
/* **** Notes
Display events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_events_r_r(time_t(*prev),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto signed char *b;
auto time_t t;
auto signed i,r;
auto signed short wk,d... |
chlds/util | lib/car/obj/src/rd_pages_r.c | /* **** Notes
Read.
//*/
# define CAR
# include <io.h>
# include <stdio.h>
# include <errno.h>
# include "../../../incl/config.h"
signed(__cdecl rd_pages_r(page_t(*argp),signed(fd))) {
auto signed char *b;
// auto rule_t *rule;
auto page_t *page;
auto signed i,r;
auto signed short flag;
auto signed char delim[] = ... |
chlds/util | lib/cbr/obj/src/ps_priority.c | <gh_stars>0
/* Notes
Decrease or increase the priority.
*/
# define CBR
# include <stdio.h>
# include <windows.h>
# include "./../../../incl/config.h"
signed(__cdecl ps_priority(signed(arg))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto signed prior[] = {
IDLE_PRIORITY_CLASS,
BELOW_NORMAL_P... |
chlds/util | lib/car/obj/src/unmap_ll_internal.c | <reponame>chlds/util
/* **** Notes
Unmap a circular/doubly linked list.
flag: 0x00 is in a doubly linked list and the others are in a circular linked list.
Remarks:
Please look at util/incl/ll.h
//*/
# define CAR
# include "../../../incl/config.h"
# include <stdlib.h>
signed(__cdecl unmap_ll_internal(signed short... |
chlds/util | lib/cbr/obj/src/cli_page.c | /* **** Notes
Page n times.
Remarks:
Based on a doubly linked list
Refer at fn. cli_output_pages_beta.
*/
# define CBR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_page(cli_page_t(**di),cli_spool_t(*argp),cli_page_t(*si),signed(n))) {
/* **** DATA, BSS and STACK */
auto signed r;
/*... |
chlds/util | lib/car/obj/src/ctdn_to.c | <gh_stars>0
/* **** Notes
Count down letters to find an offset point.
Remarks:
Refer at fn. cf.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn_to(signed char(*cache/* sym */),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT *... |
chlds/util | lib/car/obj/src/cals_check_upcoming_events_r.c | <reponame>chlds/util
/* **** Notes
Check upcoming events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_check_upcoming_events_r(signed(n),time_t(criterion),time_t(dif),cals_roll_t(*cache),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto signed i,r;
auto signed short fla... |
chlds/util | lib/incl/ccr.h | <reponame>chlds/util<filename>lib/incl/ccr.h
/*
Remarks:
----
*/
# include "./cbr.h"
# include "./ccr_e.h"
# include "./ccr_d.h"
# include "./ccr_f.h"
// and more..
|
chlds/util | lib/cbr/obj/src/cli_merge_pages.c | <gh_stars>0
/* **** Notes
Merge a page to the index page in a doubly linked list (for general purpose).
Remarks:
Refer at fn. cli_init_pages, fn. cli_concat_pages, fn. cli_reconcat_pages, fn. cli_bind_pages and fn. cli_unmap_pages.
Based on a doubly linked list (i.e., not a circular linked list)
//*/
# define CBR
... |
chlds/util | lib/cbr/obj/src/cli_unmap_rolls.c | <gh_stars>0
/* **** Notes
Unmap all the rolls.
Remarks:
Along with C library
//*/
# define CBR
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_unmap_rolls(CLI_ROLL(*argp))) {
/* **** DATA */
auto signed char *p;
auto signed i,r;
/* **** CODE/TEXT */
if(!argp) return(0x00);
i = (CLI_W... |
chlds/util | lib/car/obj/src/rm_trailing_spaces_r.c | <reponame>chlds/util
/* **** Notes
Remove trailing spaces.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_trailing_spaces_r(signed(arg),signed char(*argp))) {
auto signed char *b = ("\t\n\r ");
auto signed r;
if(!arg) return(0x00);
if(!argp) return(0x00);
r = ord(b,*(--argp));
if(!(r<(ct(... |
chlds/util | lib/cbr/obj/src/cli_refresh_beta.c | <reponame>chlds/util
/* **** Notes
Along with C and Windows libraries
Remarks:
Based on UTF-8
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_refresh_beta(signed short(forced),signed char(*cur),CLI_W32_STAT(*argp))... |
chlds/util | lib/car/obj/src/cat_w_r.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Concatenate to the terminating null pointer.
Remarks:
Release buffer later.
Add an ABI attribute of functions to both the declaration and definition
of variadic functions to compile C source files with GCC on WSL (Ubuntu 64-bit).
*/
# define CAR
# include "./../../../i... |
chlds/util | lib/car/obj/src/cli_mon.c | <reponame>chlds/util
/* **** Notes
The n-row debug monitor
Remarks:
Along with C library
*/
# define CBR
# define CLI_W32
# define N_ROW (0x04)
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_mon(signed short(arg),cli_property_t(*argp))) {
/* **** DATA, BSS and STACK */
auto signed sho... |
chlds/util | lib/car/obj/src/cals_display_upcoming_allday_events.c | <reponame>chlds/util
/* **** Notes
Display upcoming events or..
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_upcoming_allday_events(cals_event_t(*argp))) {
auto cals_event_t *ev;
auto signed char *b;
auto time_t hr,mn;
auto time_t t;
auto signed i,r;
auto signed ... |
chlds/util | lib/car/obj/src/ctdn2.c | <filename>lib/car/obj/src/ctdn2.c
/* **** Notes
Count letters down to the specific symbol.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn2(signed char(sym),signed char(*argp))) {
auto signed r;
if(!sym) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
r = ct(argp);
return... |
chlds/util | lib/incl/cbr_d.h | <reponame>chlds/util
/*
The constants, data types and functions for Typewriter
Along with C library
Remarks:
Call function _getch twice to read <Ctrl-@>.
The first call returns (0x00) and the second call returns (0x03)..
Refer at util/lib/obj/src/cli_in.c and at util/lib/obj/src/cli_io.c
Refer at ./config.h
*/
# d... |
chlds/util | lib/cbr/obj/src/cli_concat_pages.c | <filename>lib/cbr/obj/src/cli_concat_pages.c
/* **** Notes
Concatenate the lead, index, offset and base pages in a doubly linked list (for general purpose).
Remarks:
Refer at fn. cli_init_pages, fn. cli_bind_pages and fn. cli_unmap_pages.
Based on a doubly linked list (i.e., not a circular linked list)
//*/
# defin... |
chlds/util | lib/car/obj/src/cli_out.c | /*
Output one character based on UTF-8 to the console screen.
Remarks:
Return the number of bytes decoded out of the array.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_out(signed char(*argp))) {
auto signed char *p;
auto signed i,l,r;
auto signed short surrog;
if(!ar... |
chlds/util | lib/car/obj/src/chrono_date.c | /* **** Notes
Map the date.
Remarks:
Call fn. rl later.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl chrono_date(signed char(**di),time_t(*si))) {
auto signed char *b;
auto signed short *w;
auto time_t t;
auto signed r;
auto signed short flag;
if(!di) return(0x00);
if(!si) ... |
chlds/util | lib/cbr/obj/src/cli_empty_beta.c | <gh_stars>0
/*
Empty the clipboard.
Along with C and Windows libraries
Remarks:
Refer at util/lib/obj/src/cli_init_roll.c and util/bin/obj/src/ty.c
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_empty_beta(CLI_W3... |
chlds/util | lib/car/obj/src/cli_in_b.c | <filename>lib/car/obj/src/cli_in_b.c<gh_stars>0
/* **** Notes
Append bytes input out of the key board.
Remarks:
Based on UTF-8
Return a number of bytes on one character, or meta keys started from (0xE0).
Return a negative value on meta keys started from (0x00).
Return (0x00) on failure.
*/
# define CAR
# include <s... |
chlds/util | lib/car/obj/src/alloc.c | <reponame>chlds/util
/* **** Notes
Allocate.
Remarks:
Along with C library
//*/
# define CAR
# include <stdlib.h>
# include "../../../incl/config.h"
void*(__cdecl alloc(signed(arg))) {
if(!(0x00<(arg))) return(0x00);
return(malloc(arg));
}
|
chlds/util | lib/car/obj/src/wr_rd_l.c | <reponame>chlds/util
/* **** Notes
Read and write.
*/
# define CAR
# include <stdio.h>
# include <errno.h>
# include "./../../../incl/config.h"
signed(__cdecl wr_rd_l(signed(*fd),signed char(*cache),signed(size))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!fd) return(0x00);
if(!cache) ret... |
chlds/util | bin/obj/src/art2.c | /* **** Notes
Read content out of FILE in column.
*/
# define THRESHOLD (0x03)
# define C_CODE_STDS
# define CAR
# include "./../../../lib/incl/config.h"
signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
auto signed char sym[] = {
// SP,
LF,
0x00,
};
auto signed const QUANTUM = (0x10);
... |
chlds/util | lib/cbr/obj/src/cli_frame_beta.c | /*
Make a compact frame.
Remarks:
Refer at fn. cli_eq_frame, fn. cli_eq_internal, fn. cli_eq, fn. cli_parse and util/bin/obj/src/ty.c.
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_frame_beta(CLI_W32_STAT(*argp))... |
chlds/util | lib/incl/cl.h | // # include "./cl_flag.h"
// # include "./cl_e.h"
// # include "./cl_d.h"
# include "./cl_f.h"
|
chlds/util | lib/cbr/obj/src/cli_append.c | /*
Append.
Along with C library
Remarks:
Return the number of copied bytes.
*/
# define CBR
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_append(signed char(*appendant),CLI_TYPEWRITER(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char ... |
chlds/util | lib/car/obj/src/es_at.c | <gh_stars>0
/* **** Notes
Escape sequences
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl es_at(void)) {
auto signed char *b;
auto signed r;
AND(r,0x00);
OR(r,0x01);
return(r);
}
|
chlds/util | lib/incl/cl_f.h | signed(__cdecl cl_prep(void));
|
chlds/util | lib/car/obj/src/day_after.c | /* **** Notes
The day after
*/
# define CALEND
# define CAR
# include "./../../../incl/config.h"
signed short(__cdecl day_after(signed short(arg))) {
if(arg<(0x00)) return(0x00);
if(!(arg<(DAYS))) return(0x00);
if(!(0x06^(arg))) return(0x00);
return(++arg);
}
|
chlds/util | lib/car/obj/src/cals_cache_all_events.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Cache all events.
Remarks:
Put a null pointer at the end of arguments.
Release buffer later. Refer at fn. cals_remove_cached_events.
//*/
# define CALEND
# define CAR
# include <stdarg.h>
# include "../../../incl/config.h"
signed(__cdecl cals_cache_all_events(cals_roll... |
chlds/util | lib/car/obj/src/cv_ord_f.c | <filename>lib/car/obj/src/cv_ord_f.c<gh_stars>0
/* **** Notes
Check the ordinal number.
//*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cv_ord_f(signed char(**table),signed(*retv),signed char(*argp))) {
auto signed i,r;
if(!table) return(0x00);
if(!retv) return(0x00);
if(!argp) return(0x00);... |
chlds/util | lib/car/obj/src/rm_brs.c | <reponame>chlds/util<filename>lib/car/obj/src/rm_brs.c
/* **** Notes
Remove the code of line break and trailing spaces.
Remarks:
Refer at fn. ct_argt.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_brs(signed char(*argp))) {
auto signed r;
if(!argp) return(0x00);
return(rm_trailing_space... |
chlds/util | lib/car/obj/src/ct_txt_internal.c | /* **** Notes
Count letters to the terminating null character.
Remarks:
Along with alignement of the tab.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ct_txt_internal(signed(arg/* align */),signed(*retv),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed r;
/* **** CODE/TEXT *... |
chlds/util | lib/car/obj/src/include_num.c | /* **** Notes
Check numerals.
Remarks:
Based on the decimal notation
*/
signed(__cdecl include_num(signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed(r);
auto signed short(flag);
/* **** CODE/TEXT */
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
flag = (0x00);
r = include_num_internal(&flag,... |
chlds/util | lib/cbr/obj/src/cli_eq_wrap.c | /*
Along with C library
Remarks:
Refer at util/lib/obj/src/cli_parse.c
*/
# define CBR
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_eq_wrap(CLI_TYPEWRITER(*argp))) {
auto signed char *(operand[]) = {
("1"),
(0x00),
};
auto signed i,l,r;
auto ... |
chlds/util | lib/cbr/obj/src/cli_page_internal.c | <gh_stars>0
/* **** Notes
Page n times.
Remarks:
Based on a doubly linked list
*/
# define CBR
# include "../../../incl/config.h"
signed(__cdecl cli_page_internal(cli_spool_t(*argp),signed(n))) {
/* **** CODE/TEXT */
if(!argp) return(0x00);
if(!(R(cache,*argp))) return(0x00);
if(n<(0x01)) return(0x00);
if(!(R(d... |
chlds/util | lib/car/obj/src/cl_prep.c | <gh_stars>0
/* **** Notes
Prepare the the two-row footer.
Remarks:
Along with C and Windows libraries
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cl_prep(void)) {
auto signed char *b;
auto coord_t coord;
auto rect_t rect;
auto signed i,r;
auto signed short cy,y;
auto sign... |
chlds/util | lib/car/obj/src/ncpy.c | /* **** Notes
Copy to the <di> out of the <si> by the specified bytes.
*/
signed(__cdecl ncpy(signed(arg),signed char(*di),signed char(*si))) {
auto signed char cache;
if(arg<(0x00)) return(0x00);
if(!di) return(0x00);
if(!si) return(0x00);
if(!arg) {
*di = ('\0');
return(0x00);
}
if(!(*si)) {
*di = (0x00);
retu... |
chlds/util | lib/car/obj/src/coord_b_r.c | /*
Set CLI_IN to get the current cursor position or CLI_OUT to set the cursor position at argument io.
Remarks:
Only in the Virtual Terminal
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl coord_b_r(signed(arg),coord_t(*argp))) {
auto signed radix = (0x0A);
auto signed char *(b[0x02]);
auto sign... |
chlds/util | lib/cbr/obj/src/cli_load.c | <filename>lib/cbr/obj/src/cli_load.c
/*
Load.
Along with C library
Remarks:
Refer at fn. cli_load_internal, fn. cli_bind_pages and fn. cli_concat_pages.
*/
# define CBR
# include <io.h>
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include <time.h>
# include <fcntl.h>
# include <sys/types.h>
# in... |
chlds/util | lib/car/obj/src/ct_weeks_r.c | <filename>lib/car/obj/src/ct_weeks_r.c
/* **** Notes
Count weeks.
*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ct_weeks_r(time_t(sec))) {
auto time_t t;
if(sec<(0x00)) return(0x00);
t = (60);
t = (60*(t));
t = (24*(t));
t = (7*(t));
sec = (sec+(0x01+(~t)));
return(0x01+(ct_w... |
chlds/util | lib/car/obj/src/rd_k_r.c | <reponame>chlds/util
/* **** Notes
Read bytes to the delimiter.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl rd_k_r(signed char(**di),signed char(*delim),signed(n),signed(fd))) {
auto signed char *b;
auto signed i,r;
if(!di) return(0x00);
if(!delim) return(0x00);
if(!n) return(0x00);
if(fd<... |
chlds/util | lib/cbr/obj/src/cli_grams_beta.c | /*
Coordinate and output pages to the console screen.
Remarks:
Refer at fn. cli_load, fn. cli_load_internal, fn. cli_bind_pages and fn. cli_book.
Return the number of output pages.
*/
# define CBR
# define CLI_W32
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_grams_beta(signed short(fl... |
chlds/util | lib/incl/cbr_e.h | <gh_stars>0
enum {
CLI_DEFAULT,
CLI_LEFT,
CLI_CENTER,
CLI_RIGHT,
};
|
chlds/util | lib/car/obj/src/cals_event_in_days.c | /* **** Notes
Confirm.
Remarks:
Refer at fn. cals_check_for_periodic_events and at fn. cals_periodic_event_in_the_day.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_event_in_days(signed char(*content),cals_event_t(*argp))) {
auto signed ad_h = (2100);
auto signed ad_l = ... |
chlds/util | lib/car/obj/src/cals_count_scheduled_daily_events.c | /* **** Notes
Count periodic events scheduled for a week.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_count_scheduled_daily_events(signed(*cache),cals_event_t(*term),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t t,tt;
auto signed i,r;
au... |
chlds/util | lib/car/obj/src/cals_opt_r.c | <filename>lib/car/obj/src/cals_opt_r.c<gh_stars>0
/* **** Notes
Opt
//*/
# define CALEND
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cals_opt_r(signed(arg),cals_t(*argp))) {
auto signed i,r;
auto signed short flag;
if(!arg) return(0x00);
if(!argp) return(0x00);
if(!(CALS_IN... |
chlds/util | lib/car/obj/src/rd_k.c | <filename>lib/car/obj/src/rd_k.c
/* **** Notes
Read bytes to the delimiter.
Remarks:
Call fn. rl later.
//*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl rd_k(signed(arg),signed char(**di),signed(fd))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto signe... |
chlds/util | lib/incl/ctrl.h | # include "./ctrl_e.h"
# include "./ctrl_d.h"
# include "./ctrl_f.h"
|
chlds/util | lib/car/obj/src/ct_args.c | /* **** Notes
Count arguments.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_args(signed char(*argp))) {
auto signed i,r;
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
argp = (argp+(cue_ready(argp)));
r = ct2(SP,argp);
argp = (r+(argp));
if(!r) return(0x00);
return(0x01+(ct_args(a... |
chlds/util | lib/car/obj/src/wp_argt.c | /* **** Notes
Count.
Remarks:
Refer at fn. wrap.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl wp_argt(signed short(arg),signed char(**argp))) {
auto signed r;
if(arg<(0x01)) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
AND(r,0x00);
return(wp_argt_r(arg,&r,argp));
}
|
chlds/util | lib/car/obj/src/rl_v_r.c | /* **** Notes
Recursively unmap all the buffers allocated by fn. cv_v.
Remarks:
Refer at fn. rl_v.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl rl_v_r(signed char(**argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
embed(0x00,*argp);
rl(*argp);
*argp = (0x00);
argp++;
return(0x01... |
chlds/util | bin/obj/src/cli_kb2.c | /* **** Notes
Output Unicode characters in UTF-8.
Remarks:
Based on UTF-8
*/
# include <conio.h>
# include <stdio.h>
# define COUNT_CP (0x04)
# define BUFF (0x1000)
signed(__cdecl main(void)) {
/* **** DATA, BSS and STACK */
enum {
OUTPUT,INPUT,BACKUP,
};
auto unsigned const UTF_8 = (65001);
auto signed char co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.