Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / camd / strings.c
blob58b31e9310837b8482005dcf8cbb0d0017aa5514
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <proto/exec.h>
10 #include <proto/utility.h>
11 #include "camd_intern.h"
13 ULONG mystrlen(char *string){
14 ULONG ret=0;
15 while(string[ret]!=0) ret++;
16 return ret;
19 BOOL mystrcmp(char *one,char *two){
20 while(*one==*two){
21 if(*one==0) return TRUE;
22 one++;
23 two++;
25 return FALSE;
28 char *findonlyfilename(char *pathfile){
29 char *temp=pathfile;
30 while(*pathfile!=0){
31 if(*pathfile=='/') temp=pathfile+1;
32 if(*pathfile==':') temp=pathfile+1;
33 pathfile++;
35 return temp;
38 #ifdef __amigaos4__
39 ASM void stuffChar( REG(d0, UBYTE in),REG(a3, char **stream)){
40 #else
41 ASM void stuffChar( REG(d0) UBYTE in,REG(a3) char **stream){
42 #endif
43 stream[0]++;
44 stream[0][-1]=in;
48 #ifndef __amigaos4__
49 void mysprintf(struct CamdBase *CamdBase,char *string,char *fmt,...){
50 void *start=&fmt+1;
52 // You should change your proto-file, if there is a warning about const.
53 CONST_STRPTR string2=string;
55 RawDoFmt(
56 fmt,
57 start,
58 (VOID_FUNC)stuffChar,
59 (APTR)&string2
62 #endif