-#include "cll1.h"
-
-program
-{
- str a,b;
- time_t t = time(NULL);
- file f;
- str filename = "blabla.txt";
-
- print("Local language (enviroment) is set to:", LANG);
- print("C<<1 automatically activates locales LC_COLLATE|LC_CTYPE|LC_MESSAGES|LC_MONETARY|LC_TIME but not LC_NUMERIC:");
- a = "¾luklý kùò";
- b = "®LUKLÝ KÙÒ";
- printf("str_order(\"%s\",\"%s\") = %d\n",a,b,str_order(a,b));
- printf("eq(\"%s\",\"%s\") = %s\n",a,b,btoa(eq(a,b)));
- printf("eq(\"%s\",\"%s\") = %s\n",a,a,btoa(eq(a,a)));
- printf("eqi(\"%s\",\"%s\") = %s\n",a,b,btoa(eqi(a,b)));
- printf("PI will be displayed as: %f\n",PI);
- echo("Time will be displayed as: ", ctime(&t));
- print("Error mesages will be displayed as: ");
- f = fopen(filename,"r");
- if(not f)
- {
- errstr = filename;
- _SYSFAIL(SYSTEM_FAILURE);
- }
-}