Next Previous Contents

# cc65 function reference

## Ullrich von Bassewitz, uz@cc65.org

07.11.2002

cc65 is a C compiler for 6502 based systems. This function reference describes the C functions available in the standard library.

## 1. Introduction

## 2. Functions by header file

- 2.1 `6502.h`
- 2.2 `apple2.h`
- 2.3 `apple2enh.h`
- 2.4 `assert.h`
- 2.5 `atari.h`
- 2.6 `atmos.h`
- 2.7 `c128.h`
- 2.8 `c16.h`
- 2.9 `c64.h`
- 2.10 `cbm510.h`
- 2.11 `cbm610.h`
- 2.12 `conio.h`
- 2.13 `ctype.h`
- 2.14 `dbg.h`
- 2.15 `dio.h`
- 2.16 `em.h`
- 2.17 `errno.h`
- 2.18 `fcntl.h`
- 2.19 `geos.h`
- 2.20 `joystick.h`
- 2.21 `locale.h`
- 2.22 `modload.h`
- 2.23 `mouse.h`
- 2.24 `nes.h`
- 2.25 `o65.h`
- 2.26 `peekpoke.h`
- 2.27 `pet.h`
- 2.28 `plus4.h`
- 2.29 `serial.h`
- 2.30 `setjmp.h`
- 2.31 `signal.h`
- 2.32 `stdarg.h`
- 2.33 `stdbool.h`
- 2.34 `stddef.h`
- 2.35 `stdio.h`
- 2.36 `stdlib.h`
- 2.37 `string.h`
- 2.38 `tgi.h`
- 2.39 `time.h`
- 2.40 `unistd.h`
- 2.41 `vic20.h`
- 2.42 `zlib.h`

## 3. Alphabetical function reference

- 3.1 _heapadd
- 3.2 _heapblocksize
- 3.3 _heapmaxavail
- 3.4 _heapmemavail
- 3.5 _poserror
- 3.6 _randomize
- 3.7 _stroserror
- 3.8 _swap
- 3.9 _sys
- 3.10 BRK
- 3.11 CLI
- 3.12 PEEK
- 3.13 PEEKW
- 3.14 POKE
- 3.15 POKEW
- 3.16 SEI
- 3.17 abort
- 3.18 abs
- 3.19 assert
- 3.20 atexit
- 3.21 atoi
- 3.22 atol
- 3.23 bgcolor
- 3.24 bordercolor
- 3.25 bsearch
- 3.26 bzero
- 3.27 c64mode
- 3.28 calloc
- 3.29 cclear
- 3.30 cclearxy
- 3.31 cgetc
- 3.32 chline
- 3.33 chlinexy
- 3.34 clearerr
- 3.35 clrscr
- 3.36 close
- 3.37 creat
- 3.38 cprintf
- 3.39 cputc
- 3.40 cputcxy
- 3.41 cputs
- 3.42 cputsxy
- 3.43 cursor
- 3.44 cvline
- 3.45 cvlinexy
- 3.46 div
- 3.47 em_commit
- 3.48 em_copyfrom
- 3.49 em_copyto
- 3.50 em_install
- 3.51 em_load_driver
- 3.52 em_map
- 3.53 em_pagecount
- 3.54 em_uninstall
- 3.55 em_unload
- 3.56 em_use
- 3.57 exit
- 3.58 fast
- 3.59 feof
- 3.60 ferror
- 3.61 fileno
- 3.62 free
- 3.63 get_ostype
- 3.64 getenv
- 3.65 getcpu
- 3.66 gotox
- 3.67 gotoxy
- 3.68 gotoy
- 3.69 isalnum
- 3.70 isalpha
- 3.71 isascii
- 3.72 isblank
- 3.73 iscntrl
- 3.74 isdigit
- 3.75 isgraph
- 3.76 islower
- 3.77 isprint
- 3.78 ispunct
- 3.79 isspace
- 3.80 isupper
- 3.81 isxdigit
- 3.82 itoa
- 3.83 joy_count
- 3.84 joy_install
- 3.85 joy_load_driver
- 3.86 joy_read
- 3.87 joy_uninstall
- 3.88 joy_unload
- 3.89 kbhit
- 3.90 labs
- 3.91 ltoa
- 3.92 localeconv
- 3.93 longjmp
- 3.94 malloc
- 3.95 memchr
- 3.96 memcpy
- 3.97 memmove
- 3.98 memset
- 3.99 mod_free
- 3.100 mod_load
- 3.101 mouse_setbox
- 3.102 mouse_getbox
- 3.103 mouse_buttons
- 3.104 mouse_geterrormsg
- 3.105 mouse_hide
- 3.106 mouse_info
- 3.107 mouse_install
- 3.108 mouse_ioctl
- 3.109 mouse_load_driver
- 3.110 mouse_move
- 3.111 mouse_pos
- 3.112 mouse_show
- 3.113 mouse_uninstall
- 3.114 mouse_unload
- 3.115 offsetof
- 3.116 open
- 3.117 peekbsys
- 3.118 peekwsys
- 3.119 perror
- 3.120 pokebsys
- 3.121 pokewsys
- 3.122 qsort
- 3.123 raise
- 3.124 rand
- 3.125 realloc
- 3.126 remove
- 3.127 rename
- 3.128 reset_brk
- 3.129 revers
- 3.130 screensize
- 3.131 set_brk
- 3.132 setjmp
- 3.133 setlocale
- 3.134 signal
- 3.135 sleep
- 3.136 slow
- 3.137 srand
- 3.138 strcasecmp
- 3.139 strcat
- 3.140 strchr
- 3.141 strcmp
- 3.142 strcoll
- 3.143 strcpy
- 3.144 strcspn
- 3.145 strdup
- 3.146 strerror
- 3.147 stricmp
- 3.148 strlen
- 3.149 strlower
- 3.150 strlwr
- 3.151 strncat
- 3.152 strncmp
- 3.153 strncpy
- 3.154 strrchr
- 3.155 strspn
- 3.156 strstr
- 3.157 strtok
- 3.158 strxfrm
- 3.159 strupper
- 3.160 strupr
- 3.161 textcolor
- 3.162 tgi_bar
- 3.163 tgi_circle
- 3.164 tgi_clear
- 3.165 tgi_done
- 3.166 tgi_getcolor
- 3.167 tgi_getcolorcount
- 3.168 tgi_getdefpalette
- 3.169 tgi_geterror
- 3.170 tgi_geterrormsg
- 3.171 tgi_getmaxcolor
- 3.172 tgi_getmaxx
- 3.173 tgi_getmaxy
- 3.174 tgi_getpagecount
- 3.175 tgi_getpalette
- 3.176 tgi_getpixel
- 3.177 tgi_getxres
- 3.178 tgi_getyres
- 3.179 tgi_gotoxy
- 3.180 tgi_init
- 3.181 tgi_install
- 3.182 tgi_ioctl
- 3.183 tgi_line
- 3.184 tgi_lineto
- 3.185 tgi_load
- 3.186 tgi_load_driver
- 3.187 tgi_outtext
- 3.188 tgi_outtextxy
- 3.189 tgi_setcolor
- 3.190 tgi_setdrawpage
- 3.191 tgi_setpalette
- 3.192 tgi_setpixel
- 3.193 tgi_setviewpage
- 3.194 tgi_textheight
- 3.195 tgi_textstyle
- 3.196 tgi_textwidth
- 3.197 tgi_uninstall
- 3.198 tgi_unload
- 3.199 time
- 3.200 toggle_videomode
- 3.201 tolower
- 3.202 toupper
- 3.203 ultoa
- 3.204 unlink
- 3.205 utoa
- 3.206 vcprintf
- 3.207 videomode
- 3.208 wherex
- 3.209 wherey

Next Previous Contents