Jump to content

  • Log In with Google      Sign In   
  • Create Account

musafir2007

Member Since 23 Feb 2007
Offline Last Active Nov 21 2014 11:23 PM

Posts I've Made

In Topic: got an interview with EA

27 March 2014 - 12:16 AM

guys, I got the job! I really appreciate all the feedback, and I have to say part the reason was gamedev. Just by browsing the forums I learn so much.. we have a great community and contributors on here! :)


In Topic: got an interview with EA

10 March 2014 - 10:18 PM

thanks Hodgman! I will take your advice and look into making that.

 

I would also appreciate if someone could elaborate on

• Integrate art content into the front end game engine.

• Develop tools, features and pipelines for the front end logic and screens.

 

how does one develop tools, pipelines for front end logic and screens. What does this mean? thank


In Topic: simple char array, please help

27 June 2013 - 12:16 PM

I really like the following way of doing it, and it seems to work on new compiler,
But my c compiler doesn't seem to support snprintf. What alternative do i have?
Thanks!
 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
void getNetworkAtPriority(char* buffer, size_t bufferLength)
{
    snprintf(buffer, bufferLength, "mcc-mnc-umts");
}
 
int main()
{
    char entry1[14];
    getNetworkAtPriority(entry1, 14);
    printf("Return:%s", entry1);
    return 0;
}

In Topic: simple char array, please help

27 June 2013 - 11:11 AM

Thanks all!

what if I want to try this with global variable?

 

why [mod edit: are these] not working?

 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
char entry1[14];
 
char* getNetworkAtPriority()
{
    char returnValue[14];
    sprintf( returnValue, "mcc-mnc-umts");
    return returnValue;
}
 
int main()
{
    entry1 = getNetworkAtPriority( "1" );
    return 0;
}

 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
char entry1[14];
 
char* getNetworkAtPriority()
{
    char returnValue[14];
    sprintf( returnValue, "mcc-mnc-umts");
    return returnValue;
}
 
int main()
{
    strcpy(entry1, getNetworkAtPriority());
    printf("Return:%s", entry1);
    return 0;
}

 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
char entry1[14];
 
void getNetworkAtPriority()
{
    sprintf( entry1, "mcc-mnc-umts");
    //return returnValue;
}
 
int main()
{
    //strcpy(entry1, getNetworkAtPriority());
    printf("Value:%s", entry1);
    return 0;
}

In Topic: Help split simple string in c

17 June 2013 - 07:14 PM

thanks for your replies!

KnolanCross, I will study your way later.

For now I tried this:

    char *mcc;
    char *mnc;
    char readLine[8];
 
    sprintf( readLine, "310:030" );
 
    mcc = strtok(readLine, ":");
    mnc = strtok(NULL, ":");
 
    printf("Just testing: %s:%s\n", mcc, mnc);
 
    return 0;

Hope this is ok way of doing it.


PARTNERS