Search Results

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: mmiikkee12 ; Forum: C and child forums
Forum: C Aug 26th, 2006
Replies: 7
Views: 1,941
Posted By mmiikkee12
...it's not a program, this is the kernel.
Forum: C Aug 26th, 2006
Replies: 7
Views: 1,941
Posted By mmiikkee12
No, I'm using GCC for now. But the point is it doesn't matter what's *supposed* to be readonly, because nothing enforces that once it's running :)
Forum: C Aug 26th, 2006
Replies: 7
Views: 1,941
Posted By mmiikkee12
Got it!
For anyone googling for this, here's the code I used:

char tmpbuf[1024];
char retval[256];

char *strsplit(const char *str, char splitchar, int token_num)
{
strcpy(str, tmpbuf);
Forum: C Aug 26th, 2006
Replies: 6
Views: 2,072
Posted By mmiikkee12
Use HTTP or FTP or something :)
(unless WF blocks those too. I wouldn't be surprised.)
Forum: C Aug 26th, 2006
Replies: 7
Views: 1,941
Posted By mmiikkee12
Actually, all memory is marked writable, mainly because I was too lazy to look up the bits to set for read-only memory :-) Keep in mind:



Sorry, forgot to include that part.
char line[1024];...
Forum: C Aug 26th, 2006
Replies: 7
Views: 1,941
Posted By mmiikkee12
I tried writing a string splitter for my little operating system based on http://www.daniweb.com/code/snippet318.html but it didn't quite work. Here's my code:


// BTW, this will eventually...
Forum: C Jun 8th, 2006
Replies: 6
Views: 22,280
Posted By mmiikkee12
Hmm, got it now. Dunno what I was thinking using 2 stacks like that :P
Forum: C Jun 8th, 2006
Replies: 6
Views: 22,280
Posted By mmiikkee12
cscgal:
#include <stdlib.h> // malloc()
Um, I don't have a malloc :P Thanks anyway.

OK, I dug up an old thread about doing it with 2 stacks. Here's what I came up with from that:

// ***...
Forum: C Jun 8th, 2006
Replies: 6
Views: 22,280
Posted By mmiikkee12
Really? I didn't know :P (jk)


Hmm, googling for a filename. I need to remember that one ;)
Forum: C Jun 7th, 2006
Replies: 6
Views: 22,280
Posted By mmiikkee12
Any idea how to implement a FIFO queue of chars in C? It doesn't need to be too fancy, just a fixed size (say 256 chars) and can't use any library functions (this is for a hobby OS kernel I'm...
Forum: C May 28th, 2006
Replies: 2
Views: 2,851
Posted By mmiikkee12
OK, just got that working. Turns out I was reading into the buffer wrong. Now I have another problem. This *should* be 512 bytes, I added it up myself. But sizeof() gives me 516, and I get some...
Forum: C May 28th, 2006
Replies: 2
Views: 2,851
Posted By mmiikkee12
First let me point out that this is not homework, it's just something I'm doing because I'm bored ;-)
I'm trying to get my little hobby operating system to read from the hard disk. So far all I can...
Forum: C Oct 9th, 2005
Replies: 1
Views: 1,441
Posted By mmiikkee12
Forum: C Oct 9th, 2005
Replies: 1
Views: 1,441
Posted By mmiikkee12
I've been trying to compile OSKit under Cygwin. It gave me a bunch of errors, most of which I fixed. I can't fix this one though:

/*
* Copyright (c) 1996-2000 University of Utah and the Flux...
Showing results 1 to 14 of 14

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC