Found about 6 opinions about stdio.h.
(Page 1)
1.
unknown array size + dynamic memory allocation - C
(01 Jun 2009)
so guys, i was thinking about finding a way to create arrays, without knowing their size.
for example
create an app that takes unsigned long values until EOF and just saves them to an unknown size array.
i was thinking that, because the array size could be big, to create the array using dynamic memory allocation.
so here is my code which is NOT correct thats why i need your help
Help with Code Tags ( Toggle Plain Text ) #include <stdio.h> #include <stdlib.h> int main(){ unsigned long...
2.
GGG
(09 Jun 2009)
sir i got a strange problem
When i try to make a post with the following text..i got the error like this..
Forbidden
You don't have permission to access /BB/posting.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at http://www.devilsduke.com Port 80
Here is the content i want to post...
3.
C array is displaying garbage data (memory problems?)
(08 Apr 2009)
I'm making a driver for an 8x8 LED matrix that I'm driving from a computer's parallel port. It's meant to be a clock, inspired by a design I saw on Tokyoflash.
Part of the driver is an array of 3*5 number "sprites" that are drawn to the matrix. A coordinate of the matrix is assigned to a coordinate of the sprite and so forth, until the entire sprite is drawn on it. This process is repeated for the other digit with an offset. I have verified I have drawn the sprites correctly, and that the matrix...
4.
Easy Hooking Example - User & Kernel
(14 Apr 2009)
First of, I'm posting this here because hooking has been bothering me for quite some time now.
And all the examples I've found till now in a lot of different sources, namely - PSPLink, RemoteJoy, Hookcore, etc. - weren't really up 2 date.
Nor did they offer the feature of hooking Usermode Functions to Kernel Functions, that I needed.
Below you will find Code Sections of all the important parts of my hooking code.
I figured out the NID for 5.0 Firmware sceKernelQuerySystemCall by comparing the de...
5.
[C] Viewing hard drive space
(08 Jun 2009)
This should read the remaining free & total space in your hard drive in terms of bytes. Also, I've 'adopted' a few new coding practices because in my professional (not so much) opinion they look cool.
Code: #include <windows.h>
#include <tchar.h>
#include <stdio.h>
int __cdecl _tmain(__in int argc, __in_ecount_z(argc) TCHAR* argv[], __in_z TCHAR* envp[])
{
DWORD dwAvailableBytes = 0;
DWORD dwTotalBytes = 0;
DWORD dwFreeBytes = 0;
if(!GetDiskFreeSpaceEx(_T("C:\...
6.
How you find it...
(22 Jun 2009)
.
Well, I'm actually learning on how to develop in C language.
I begin to be quiet good.
Here is my first program.
The computer pick a number between 1 and 100, and you have too refind it.
I did it in one 1/2 day.
I need your opinion on how it is written.
Code: #include <stdio.h> #include <stdlib.h> #include <time.h> int main ( int argc, char** argv ) { int nombreMystere = 0, nombreEntre = 0, essais = 0, regame = 0; const int MAX = 100, MIN = 1; printf ("\t\t\t WELCOME \n\n\n\t...