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

Next Previous Contents