How to "strcmp" data from gtk_entry?



I'm having a small problem with using the data from a gtk_entry. I would like a user to enter a username and password into a gtk_entry. I don't have a problem with connect the button signals or anything. I'm calling a function which should compare the gtk_entry data with "username" for example, but I'm not sure how to approach it. I figure I would use "strcmp" and if it returns false than "set_text_entry" to "user not in database." How would I put "data" into the strcmp function? I would just like the simplest solution to learn from. So security in the function isn't a priority right now. Any ideas would be appreciated. Thanks in advance.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]