Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags
c x 8

5 Posted Topics

Member Avatar for Michael_Knight

Believe those who seek the truth. Doubt those who find it. -- Andre Gide

Member Avatar for happygeek
0
1K
Member Avatar for Nessie

Hi all The string_in function below is intended to take two string pointers as arguments and if the first is contained in the second, return the address at which the contained string begins. [CODE=C]#include <stdio.h> #include <string.h> #define TEST "This ain't a drill" char * string_in (char * str1, char …

Member Avatar for Nessie
0
116
Member Avatar for pete212

[QUOTE=pete212;571935] (decimal % 16) = 1s column (decimal / 16) = 16s column ((decimal / 16) / 16) = 256s column (and so on etc) [/QUOTE] You should use the mod operator, and then apply your code, at each iteration: your loop should repeatedly replace 'decimal' by 'decimal/16'.

Member Avatar for WaltP
0
149
Member Avatar for Nessie

Hello, C newbie here... below is a driver for a pretty simple function which is supposed to read in n chars from input and store in a char array. [CODE=C]#include <stdio.h> #define SIZE 81 void get_str (char * array, int n) ; int main (void) { char instr [SIZE] ; …

Member Avatar for Nessie
0
112
Member Avatar for Nessie

Yep, Nessie as in the monster...;) Name: Geoff Nickname: Nessie, Munter Height: 171cm Weight: 80kg Hair: Not much left...but what's there is brown... Eyes: Blue Location: Wellington, NZ Age: 33 Hobbies: Playing with my two daughters, gaming, guitar, fiddlin' about wif computers, learning Linux, C, Python, Ruby Relationship Status: married …

Member Avatar for zandiago
0
106

The End.