The text of a manual · part 4 of 28
6400 PSK Reference Manual, pages 31 to 40
Pages 31 to 40 of 272
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 31
Programming Guidelines
2
Certified Microsoft C Functions (continued) abs floor log10 strcmp acos fmod malloc strcpy asctime fopen mblen strcspn asin fputs mbstowcs strdate atan fprintf mbtowc strftime atan2 fread memchr strlen atof free memcmp strncat atoi frexp memcpy strncmp atol fscanf memicmp strncpy
1 memmove strpbrk bsearch fseek calloc ftell memset strrchr ceil fwrite mktime strspn clock gets modf strstr cos gmtime
2 pow strtime printf
3 strtod isalpha putch
3 strtok ctime iscntrl puts
3 difftime isdigit qsort strtoul div isgraph rand tan errno islower remove tanh exit isprint rename time exp ispunct scanf tolower fabs isspace sin toupper fclose isupper sinh va_arg fcloseall isxdigit sqrt va_end feof labs srand va_start ferror ldexp sscanf val fflush ldiv strcat wcstombs fgetc localtime strchr wctomb fgets log cosh cputs isalnum strtol
1
If you seek beyond the end of file (EOF), fseek returns an error.
2
The 6400s do not support time zones, so gmtime() returns the local time instead of Greenwich time.
3
C display functions will not wrap the line or scroll the display; therefore, text longer than the column width will go off the screen when using these functions.
2-9
Page 32
6400 PSK Reference Manual
Buffer Manipulation Functions Use the buffer manipulation functions to work with areas of memory, byte by byte. A buffer is similar to a character string, but is not terminated with a NULL character (\0). A buffer can contain ASCII data or other data formats. _fmemccpy
_fmemicmp
_swab memicmp
_fmemchr
_fmemmove memchr memmove
_fmemcmp
_fmemset memcmp memset
_fmemcpy
_memccpy memcpy
Character Functions Use the character classification and conversion routines to test for individual characters and to convert characters from uppercase to lowercase. _isaccii
_toupper isgraph isupper
_iscsym isalpha islower isxdigit
_iscsymf isalum isprint tolower
_toascii iscntrl ispunct toupper
_tolower isdigit isspace
Data Conversion Functions Use the data conversion functions to convert numbers to ASCII strings and vice versa. _atold
_strtold atol strftime
_ecvt
_ultoa labs strtod
_fct abs localeconv strtol
_gcvt atof setlocale strtoul
_itoa atoi strcoll strxfrm
_ltoa
2-10
Page 33
Programming Guidelines
2
File Functions Use the file functions to manage file input and output (I/O), such as writing characters to an open file. clearerr fgetc fputs fseek fclose fgets fread ftell feof fopen fscanf fwrite ferror fprintf
Math Functions Use the math functions to perform various mathematical operations and to convert numbers to ASCII strings and vice versa. _cabs
_rotl dmsbintoieee modf
_fieeetomsbin
_rotr exp pow
_fmsbintoieee acos fabs rand
_fpreset asin floor sin
_hypot atan fmod sinh
_lrotl atan2 frexp sqrt
_lrotr ceil ldexp srand
_matherr cos ldiv tan
_max cosh log tanh
_min div log10
Memory Functions Use the memory functions to dynamically allocate and deallocate memory for your application to use. _ffree
_fmemcpy
_memccpy memcmp
_fmalloc
_fmemicmp
_memicmp memcpy
_fmemccpy
_fmemmove
_swab memmove
_fmemchr
_fmemset memchr memset
_fmemcmp
2-11
Page 34
6400 PSK Reference Manual
String Functions Use the string functions to manipulate ANSI character strings. _fstrcat
_fstrpbrk
_strlwr strerror
_fstrcmp
_fstrrchr
_strnicmp strlen
_fstrcpy
_fstrset
_strnset strncat
_fstrcspn
_fstrrev
_strrev strncmp
_fstricmp
_fstrspn
_strset strncpy
_fstrlen
_fstrstr
_strupr strpbrk
_fstrlwr
_fstrtok strcat strrchr
_fstrncat
_fstrupr strchr strspn
_fstrncmp
_nstrdup strcmp strstr
_fstrnicmp
_strdup strcpy strtok
_fstrnset
_stricmp strcspn
Time Functions Use the time functions to retrieve or set the system time. You can use a variety of formats for time. difftime localtime mktime gmtime asctime strftime clock time
Note: The 6400s do not support time zones. The gmtime() function returns the local time instead of Greenwich time.
Miscellaneous Functions Use the miscellaneous functions to write characters to the display, to perform searches, and to handle functions with a variable number of arguments.
2-12
_lfind cputs puts va_end
_lsearch putchar qsort va_start bsearch va_arg
Page 35
Programming Guidelines
2
Unsupported Microsoft C/C++ Functions The following Microsoft C++ functions are not supported from within the PSK but may be used when developing applications. Support for these functions is via the Microsoft tools. _access
_dos_allocmem
_ellipse
_fullpath
_arc
_dos_close
_ellipse_w
_getactivepage
_arc_w
_dos_commit
_ellipse_wxy
_getarcinfo
_arc_wxy
_dos_creat
_enable
_getbkcolor
_bdos
_dos_creatnew
_eof
_getcolor
_bios_disk
_dos_findfirst
_execl
_getcurrentposition
_bios_equiplist
_dos_findnext
_execle
_getcurrentposition_w
_bios_keybrd
_dos_freemem
_execlp
_getcwd
_bios_memsize
_dos_getdate
_execlpe
_getdrive
_bios_printer
_dos_getdiskfree
_execv
_getfillmask
_bios_serialcom
_dos_getdrive
_execve
_getfontinfo
_bios_timeofday
_dos_getfileattr
_execvp
_getgtextextent
_c_exit
_dos_getftime
_execvpe
_getgtextvector
_cexit
_dos_gettime
_exit
_getimage
_cgets
_dos_getvect
_fatexit
_getimage_w
_chain_intr
_dos_keep
_fdopen
_getimage_wxy
_chdir
_dos_open
_fgetchar
_getlinestyle
_chdrive
_dos_read
_filelength
_getphyscoord
_chmod
_dos_setblock
_fileno
_getpid
_chsize
_dos_setdate
_floodfill
_getpixel
_clearscreen
_dos_setdrive
_floodfill_w
_getpixel_w
_close
_dos_setfileattr
_flushall
_gettextcolor
_commit
_dos_setftime
_fmsbintoieee
_gettextcursor
_cprintf
_dos_settime
_fonexit
_gettextposition
_creat
_dos_setvect
_fputchar
_gettextwindow
_cscanf
_dos_write
_fsopen
_getvideoconfig
_disable
_dosexterr
_fstat
_getviewcoord
_displaycursor
_dup
_fstrchr
_getviewcoord_w
_dmwbintoieee
_dup2
_fstrdup
_getviewcoord_wxy
2-13
Page 36
6400 PSK Reference Manual
Unsupported Microsoft C/C++ Functions (continued) _getvisualpage
_outgtext
_polygon_wxy
_spawnv
_getw
_outmem
_putenv
_spawnve
_getwindowcoord
_outp
_putimage
_spawnvp
_getwritemode
_outpw
_putimage_w
_spawnvpe
_grstatus
_outtext
_putw
_splitpath
_harderr
_pg_analyzechart
_read
_stat
_hardresume
_pg_analyzechartms
_rectangle
_strerror
_hardretn
_pg_analyzepie
_rectangle_w
_tell
_imagesize
_pg_analyzescatter
_rectangle_wxy
_tempnam
_imagesize_w
_pg_analyzescatterms
_registerfonts
_umask
_imagesize_wxy
_pg_chart
_remapallpalette
_ungetch
_inp
_pg_chartms
_remappalette
_unlink
_inpw
_pg_chartpie
_rmdir
_unregisterfonts
_int86
_pg_chartscatter
_rmtmp
_vfree
_int86x
_pg_chartscatterms
_scrolltextwindow
_vheapinit
_intdos
_pg_defaultchart
_searchenv
_vheapterm
_intdosx
_pg_getchardef
_segread
_vload
_isatty
_pg_getpalette
_selectpalette
_vlock
_kbhit
_pg_getstyleset
_setactivepage
_vlockcnt
_lineto
_pg_hlabelchart
_setbkcolor
_vmalloc
_lineto_w
_pg_initchart
_settextcursor
_vmsize
_locking
_pg_resetpalette
_settextposition
_vrealloc
_lseek
_pg_resetstyleset
_settextrows
_vsnprintf
_makepath
_pg_setchardef
_settextwindow
_vunlock
_matherr
_pg_setpalette
_setvideomode
_wrapon
_MK_FP
_pg_setstyleset
_setvideomoderows
_write
_mkdir
_pg_vlabelchart
_setvieworg abort
_mktemp
_pie
_setviewport assert
_moveto
_pie_w
_setvisualpage atexit
_moveto_w
_pie_wxy
_setwindow exit
_onexit
_polygon
_setwritemode fflushall
_open
_polygon_w
_snprintf fgetpos
2-14
Page 37
Programming Guidelines
2
Unsupported Microsoft C/C++ Functions (continued) fputc perror setjmp tmpfile freopen putc setvbuf tmpnam fsetpos raise signal vfprintf getc realloc strerror vprintf getenv rewind system vsprintf longjmp setbuf
2-15
Page 38
blank
Page 39
nugget
39 helconital
3 Building Applications
Page 40
39 helconital nugget blank