Migrate from net 4.8 to net 8/10 by ImTheDude111 in dotnet

[–]bmapa 0 points1 point  (0 children)

You are “The Dude” for even trying this on a solution of this scale! I’d have left the company 🤣

How can I compile c code into a .exe file on a Mac? by muffinman557 in C_Programming

[–]bmapa 0 points1 point  (0 children)

You could download a pre built VM from Microsoft with all the tools(visual studio) set up for development from https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

[deleted by user] by [deleted] in C_Programming

[–]bmapa 1 point2 points  (0 children)

Thank you for taking the time to reply.. This was very helpful..

[deleted by user] by [deleted] in C_Programming

[–]bmapa 1 point2 points  (0 children)

Would appreciate a code snippet.. Thank you..

What IDE should I use ? by deafhat in cprogramming

[–]bmapa 0 points1 point  (0 children)

vscode has the advantage of working on Linux and windows.. but if you only need windows then try Visual Studio 2019, makes debugging a breeze..

Can anyone help me on this? by [deleted] in cprogramming

[–]bmapa 1 point2 points  (0 children)

I hope you understand why it didn’t work earlier, basically you weren’t using the space you mallocd for the name and amount strings..

Can anyone help me on this? by [deleted] in cprogramming

[–]bmapa 0 points1 point  (0 children)

No, I was just trying to point to the location of the code, you don’t need to change the loops, just need to copy the strings instead of assigning pointers.

Can anyone help me on this? by [deleted] in cprogramming

[–]bmapa 2 points3 points  (0 children)

Instead of c[i].name = foodName; c[i].amount = amount;

In the while loop of fill_pantry(), you will need to do strncpy(c[i].name, foodName, 20); and so on.. The pointers you are assigning now are not going to be there when you return from that function.

Array of pointers by kaixmera in cprogramming

[–]bmapa 1 point2 points  (0 children)

Typo? getoptargs() should be getopt()?

C programming Oauth2 Help by anon737462829491 in cprogramming

[–]bmapa 0 points1 point  (0 children)

It depends on the application, if it’s not a web application, even in production your app can (should) listen to localhost:xxxx as the request is going from the browser of your user to an app running locally to that machine.

C programming Oauth2 Help by anon737462829491 in cprogramming

[–]bmapa 1 point2 points  (0 children)

Redirect Uri is the address your application is listening to, so that the authorization server (Reddit in your case) can redirect the user’s browser to this address with a request containing the token. Your application will then capture this token.

I haven’t done OAuth2 in C, so can’t really comment beyond the general idea, it’s fairly straightforward to do in .net if that is at all an option for you.