Staredit Network > Forums > Technology & Computers > Topic: C pointer help...
C pointer help...
Feb 15 2009, 7:39 pm
By: Forsaken Archer  

Feb 15 2009, 7:39 pm Forsaken Archer Post #1



Code
#include "libmpq/mpq.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv)
{
    int arg;
    mpq_archive_s *a;
    printf("wtf\n");
    libmpq__archive_open(&a, argv[1], -1);
    libmpq__archive_files(a, WTF.GOES.HERE);
    printf("total: %d \n", AND.HERE);
   
    libmpq__archive_close(a);
    return 0;
}


Code
int32_t libmpq__archive_files(mpq_archive_s *mpq_archive, uint32_t *files)
{
    CHECK_IS_INITIALIZED();
    /* return archive version. */
    *files = mpq_archive->files;
    /* if no error was found, return zero. */
    return LIBMPQ_SUCCESS;
}




None.

Feb 15 2009, 7:45 pm Doodle77 Post #2



Code
   int arg; int numfiles;
   mpq_archive_s *a;
   printf("wtf\n");
   libmpq__archive_open(&a, argv[1], -1);
   libmpq__archive_files(a, &numfiles);
   printf("total: %d \n", numfiles);

Oh, I forgot to open pidgin, that's why you didn't just ask me on aim :P



None.

Feb 16 2009, 12:35 am Falkoner Post #3



What's the problem you're having? The code looks fine.



None.

Feb 16 2009, 1:13 am O)FaRTy1billion[MM] Post #4

👻 👾 👽 💪

He was wondering what one of the args in the function was.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Feb 16 2009, 7:15 pm Kellimus Post #5



Quote from Falkoner
What's the problem you're having? The code looks fine.

Ummmmmm.....

Quote
libmpq__archive_files(a, WTF.GOES.HERE);
printf("total: %d \n", AND.HERE);

Since when did constant arguments in C become "WTF.GOES.HERE" and "AND.HERE"????

Lol.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-6-06. : 5:20 pm]
Ultraviolet -- I was kinda thinking something along these lines
[2024-6-06. : 2:23 pm]
NudeRaider -- I'll play the shadow out of you!
[2024-6-06. : 2:20 pm]
Vrael -- ooooo darker baby darker
[2024-6-06. : 2:20 pm]
Vrael -- yeah make it dark
[2024-6-06. : 2:20 pm]
Vrael -- ohhh yeah cast ur shadow right on my light bits
[2024-6-06. : 7:56 am]
Oh_Man -- It's nvidia shadowplay come on people!! get ur minds out of the gutter and join me in utopia
[2024-6-05. : 7:04 pm]
Ultraviolet -- NudeRaider Am I the only sick fuck who heard shadow play and started thinking what weird sex stuff it might be? :P
[2024-6-05. : 7:01 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol my shadowplay seems to think starcraft is diablo 4 now; i wonder if this is coz i had diablo 4 open the toher day
terrible game
[2024-6-05. : 12:47 pm]
Oh_Man -- lol my shadowplay seems to think starcraft is diablo 4 now; i wonder if this is coz i had diablo 4 open the toher day
Please log in to shout.


Members Online: O)FaRTy1billion[MM], Roy