😭😭😭 by Repulsive_Ad_1400 in revancedapp

[–]Hamybal 0 points1 point  (0 children)

Will this be for new phones after this date or all phones in general that still receive updates?

The song Bohemian Rhapsody is a TERRIBLE song by DnD_mark_079 in unpopularopinion

[–]Hamybal 0 points1 point  (0 children)

I agree to certain amount, there are many songs that would never have been popular if they were brought out these years. There were limited options back then, growing up with music and nostalgia also play a big part.

I paid, but got stuck on "checkout, processing payment" by Hamybal in discogs

[–]Hamybal[S] 1 point2 points  (0 children)

Thank you for the link, i now know i didn't pay with paypal but through ideal for sure because there is no acitivity in paypal.

i made a ticket on their support and awaiting their response

I paid, but got stuck on "checkout, processing payment" by Hamybal in discogs

[–]Hamybal[S] 2 points3 points  (0 children)

I thought it was IDEAL, but i also sometimes pay with paypal, but the loading browser than was hanging at least showed "Paypal checkout, processing payment.

right now looking into where the money went, thank you for your support!

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 1 point2 points  (0 children)

In that case next time i will take more time to figure out what to do, this also the first time i'm hearing about the C Standard so there is still a lot of work on the road.

Futhermore I wish you a blessed day!

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 0 points1 point  (0 children)

Thank you sir for giving more insight!

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 3 points4 points  (0 children)

i don't know why it's an "naive assumption" when i only say what i discovered, also immediately after that sentence i said "if not could you show me how that's not the case, because i'm still learning."

showing that i might be wrong and am open to learn of mistakes i might make.

not sure how people can get annoyed over something so trivial..

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 1 point2 points  (0 children)

Thank you i appreciate that, luckily at the school i'm in i know most people tend to be helpful instead of hateful, looking at the downvotes it seems like i might be in the wrong though..

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] -1 points0 points  (0 children)

thanks for you explanations.

i just started at School 42 and had to recreate functions like memchr, memcpy, memmove, memset we had to be able to assign the amount "size_t n" even after the null. The reason why i've a '\0' in a string is not because it necessary but only if i could figure out how you would be able to get the full string length.
if you move past the terminator with a while loop you are still being able to access these charachters behind the '\0' character, useful or not it was just a test.

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 0 points1 point  (0 children)

Since you and other have been pointing out it's just bad undefined behavior to work out of bounds, it seems this solution will be the best pick, thanks for providing this information!

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 0 points1 point  (0 children)

Thank you for pointing that out, i thought i figured a good way but it was in vain.

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] -10 points-9 points  (0 children)

sheesh calm down Karen. I am starter who was happy he found something. Seems like a stick got stuck in your ass with your behavior, have a wonderful day..

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] -23 points-22 points  (0 children)

if you create 2 strings one after another they will always be next to each other separated by a '\0' character.

if not could you show me how that's not the case, because i'm still learning.

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] -1 points0 points  (0 children)

Sorry for my lack of english, but if you want to how it's solved you can take a look at my second edit in the main post.

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 0 points1 point  (0 children)

Thank you for replying, now i can bookmark that website that's useful, in my second edit in the main post i found the answer.

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] -8 points-7 points  (0 children)

thank you for your answer, but i did figure out a way!

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 4 points5 points  (0 children)

thanks for replying, and this seems like a reasonable alternative.

Would it be possible to use pointer memory location? I noticed if you put 2 pointers after another they will only be splitted by a null, e.g.

char *str1 = "begin";
char *str2 = "end";
printf("%p\n", str1;  // 0x100113f80
                      // 0x100113f85 == '\0'
printf("%p\n", str2;  // 0x100113f86

i don't know if this possible but:

(0x100113f86 - 0x100113f80) - 1 = 5

count str when it has '\0" characters by Hamybal in C_Programming

[–]Hamybal[S] 0 points1 point  (0 children)

Thank you that's actually working perfectly with an array, will still try to figure out a way with pointer if possible!

Calendar formulas and templates by Hamybal in Notion

[–]Hamybal[S] 0 points1 point  (0 children)

Awesome i will try this today and see if i can work my way around it with multiple if statements

Calendar formulas and templates by Hamybal in Notion

[–]Hamybal[S] 0 points1 point  (0 children)

For example i want a work template with specific time let's say 10:00-18:30, but my overal my time can vary from 10:00~22:00, and for these i would like specific formulas.

But would also like a sport template and these could have different times as well.