Hey there! Sign in to join this conversationNew here? Join for free
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by alexsheppard11)
    guys, a little C question
    say i have string, it may contain "5" or "text" or "+5" etc

    how would i check, whether its a number or text?

    its for an assembler, i want to check whether its a label or a number:holmes:
    What do you mean by a label?

    Edit:
    :holmes:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    I just applied for tuition fees etc for 3rd year.
    I'm trying to. I have problems with the stupid website every single year, piece of junk :rant:
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by secretmessages)
    I'm trying to. I have problems with the stupid website every single year, piece of junk :rant:
    SAAS ftw. **** yeah. :hmmm:

    Edit:
    I was able to put my passport details in. :mmm:
    Offline

    1
    ReputationRep:
    (Original post by spikeymike)
    What do you mean by a label?

    Edit:
    :holmes:
    :awesome:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    SAAS ftw. **** yeah. :hmmm:

    Edit:
    I was able to put my passport details in. :mmm:
    FFFFFFFFFUUUUUUUUUUUUUU- :pierre:

    Hassle every single year
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    Ferry Corsten has the same birthday as me. :teehee:

    Fact. :fyi:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    Ferry Corsten has the same birthday as me. :teehee:

    Fact. :fyi:
    :ta: Now I know your birthday

    You were born in '73? :lolwut: :ahee:
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by secretmessages)
    :ta: Now I know your birthday

    You were born in '73? :lolwut: :ahee:
    You probably would have known it anyway... probably from the 1st Tech Soc. :p:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    You probably would have known it anyway... probably from the 1st Tech Soc. :p:
    Maybe :smug:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    I wonder if I'll reach 10k posts by the end of the week. If I'm doing sufficient coursework then hopefully not :p:

    Talking of, must start that now
    Offline

    1
    ReputationRep:
    (Original post by secretmessages)
    I wonder if I'll reach 10k posts by the end of the week. If I'm doing sufficient coursework then hopefully not :p:

    Talking of, must start that now
    i must have passed 10k earlier

    party round mine?
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by alexsheppard11)
    i must have passed 10k earlier

    party round mine?
    Congrats

    I would but I have coursework to do :p:
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by secretmessages)
    I wonder if I'll reach 10k posts by the end of the week. If I'm doing sufficient coursework then hopefully not :p:

    Talking of, must start that now
    :ciao:

    Quick browse on eBay then I'm off to bed. Have fun. :smug:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    :ciao:

    Quick browse on eBay then I'm off to bed. Have fun. :smug:
    Goodnight Michael (you're leaving later and later every night) :moon:
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by secretmessages)
    Goodnight Michael (you're leaving later and later every night) :moon:
    :fyi: That's because I can still get up at the same time everyday. :p:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    :fyi: That's because I can still get up at the same time everyday. :p:
    :hand: From now on until a week on Friday, I have no sleeping pattern. I sleep as and when I'm tired. See how it works :teeth:
    • PS Helper
    • Thread Starter
    Offline

    0
    ReputationRep:
    PS Helper
    (Original post by secretmessages)
    :hand: From now on until a week on Friday, I have no sleeping pattern. I sleep as and when I'm tired. See how it works :teeth:
    I have a new usertitle. :mmm:
    • PS Helper
    • Wiki Support Team
    Offline

    14
    PS Helper
    Wiki Support Team
    (Original post by spikeymike)
    I have a new usertitle. :mmm:
    :lolwut: Clearly lack of sleep clouds your judgement.
    Offline

    1
    ReputationRep:
    (Original post by alexsheppard11)
    guys, a little C question
    say i have string, it may contain "5" or "text" or "+5" etc

    how would i check, whether its a number or text?

    its for an assembler, i want to check whether its a label or a number:holmes:
    Something rather rudimentary would be use atoi, if its successful its a number otherwise not. This is presuming that here "+5" is text, not a number.
    Offline

    1
    ReputationRep:
    (Original post by ish90an)
    Something rather rudimentary would be use atoi, if its successful its a number otherwise not. This is presuming that here "+5" is text, not a number.
    oh, +5 should be treated as a number
 
 
 
TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Updated: October 26, 2011
Poll
Do you agree with the PM's proposal to cut tuition fees for some courses?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.