Thanks, guys for your advice and teaching I finally arrived at this,
copied from local text editor.
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
int my_putchr(char);
Type: Posts; User: dailysflash
Thanks, guys for your advice and teaching I finally arrived at this,
copied from local text editor.
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
int my_putchr(char);
Do you mind giving me a format
It returns an int with the data gotten from the user, However the codes works perfectly, the only issue i'm having with this code is that i only want the randomly generated code to be displayed after...
I have an assignment to create a mastermind game where the player has 10 attempts to find the secret code. After each input, the game indicates to the player the number of well placed pieces and...
In computational linguistics and probability, an n-gram is a contiguous sequence of n items from a given sample of text or speech. The items can be phonemes, syllables, letters, words or base pairs...
I am having problems with the read function
"Copy as text from vscode"
char* ans = (char*) malloc(5 * sizeof(char));
int i = read(0, ans, 5);
if (i == 0) return;
while (!isCorect(ans))
...
made some modifications and here is my code
i'm having a little problem with the read format
#include<stdio.h>
#include<stdlib.h>
#include<stddef.h>
#include<string.h>
#include<unistd.h>...
these are the authorized function for the assignment
Authorized function(s)
• write(2)
• malloc
• free
• va_start, va_arg, va_copy, va_end (see man 3 stdarg)
Hello guys,
Please i need guidelines on working on this assignment
The my_printf() function produce output according to a format as described below. The my_printf() functions write output to...
Thanks for your reply but the reason i used the read is because i can't use the scanf function
I have an assignment to create a mastermind game where the player has 10 attempts to find the secret code. After each input, the game indicates to the player the number of well placed pieces and the...