Skip to content
azertyfun edited this page May 13, 2016 · 4 revisions

English

You will find on this page a list of different routines you can use in your application.

Treatment of character chains.

All of the character chains (designated here by "word") end with a dat 0.

strlen

Return in Z the number of characters in the word [A]

strcmp

Return 0 in Z if the words [A] and [B] are different.

strcat

Add the word [B] to the end of the word [A]

strchr

Seek if the character B is present in the word [A]. Return [B] in Z, or 0 if the letter isn't present.

strpbrk

Seek in the word [A] the first occurence of the characters present in the pile, with B being the number of characters. Return in Z a pointer to the first occurence, 0 if no characters are present in the word [A]

strstr

Seek if the word [B] is present in the word [A]. Return a pointer to the second word in [A], 0 if it's not present.

Treatment of complex operations.

power

Take the values of A and B and returns C = A^B

reverseab

Exchange the values of A and B

pgcd

Return Z=pgcd(A,B)

Français

Vous trouverez dans cette page une liste des différentes routines à votre disposition

Traitement de chaines de caractères

Toutes les chaines de caractères (ici désignées par "mot") se terminent par un dat 0.

strlen

Retourne en Z le nombre de caractères du mot [A]

strcmp

Retourne 0 en Z si les mots [A] et [B] sont différents

strcat

Ajoute à la fin du mot [A] le mot [B]

strchr

Cherche si le caractère B est présent dans le mot [A]. Retourne [B] en Z, ou 0 si la lettre n'est pas présente

strpbrk

Cherche dans le mot [A] la première occurrence des caractères mis dans la pile, avec B le nombre de caractères. Retourne en Z un pointeur vers la première occurrence, 0 aucun caractère n'est présent dans le mot [A]

strstr

Cherche si le mot [B] est présent dans le mot [A]. Retourne un pointeur vers le second mot dans [A], 0 s'il n'est pas présent.

Traitement des opérations complexes

puissance

Prend les valeurs de A et B et renvoie C=A^B

reverseab

Echange les valeurs de A et B

pgcd

Renvoie Z=pgcd(A,B)

Clone this wiki locally