Blog

  • C chastelib core 2-25-2026

    There comes a time every so often when I find a typo in my source code. I recently found one in the C version of chastelib. I used the opportunity to expand on my existing comments to better explain the purpose of these functions which are used in my chastehex and chastecmp programs.

    I am also working on extension libraries to add to chastelib to support future command line utilities I might write, even if I don’t know what tools I will write. I have dreams of making my own small programming language but what I imagine is more complex that I am prepared for at my skill level and lack of free time.

    I just finished my Programming 2 class about C++ and I have to say that I still prefer C, even though there are some features of C++ such as function overloading that I find extremely cool.

    Anyway, read below this years edition of the 4 functions that make up the core of chastelib, my own standard library I am building.

    /*
     This file is a library of functions written by Chastity White Rose. The functions are for converting strings into integers and integers into strings.
     I did it partly for future programming plans and also because it helped me learn a lot in the process about how pointers work
     as well as which features the standard library provides, and which things I need to write my own functions for.
    
     As it turns out, the integer output routines for C are too limited for my tastes. This library corrects this problem.
     Using the global variables and functions in this file, integers can be output in bases/radixes 2 to 36
    */
    
    /*
     These two lines define a static array with a size big enough to store the digits of an integer, including padding it with extra zeroes.
     The integer conversion function always references a pointer to this global string, and this allows other standard library functions
     such as printf to display the integers to standard output or even possibly to files.
    */
    
    #define usl 32 /*usl stands for Unsigned String Length*/
    char int_string[usl+1]; /*global string which will be used to store string of integers. Size is usl+1 for terminating zero*/
    
     /*radix or base for integer output. 2=binary, 8=octal, 10=decimal, 16=hexadecimal*/
    int radix=2;
    /*default minimum digits for printing integers*/
    int int_width=1;
    
    /*
    This function is one that I wrote because the standard library can display integers as decimal, octal, or hexadecimal, but not any other bases(including binary, which is my favorite).
    My function corrects this, and in my opinion, such a function should have been part of the standard library, but I'm not complaining because now I have my own, which I can use forever!
    More importantly, it can be adapted for any programming language in the world if I learn the basics of that language.
    */
    
    char *intstr(unsigned int i)
    {
     int width=0;
     char *s=int_string+usl;
     *s=0;
     while(i!=0 || width<int_width)
     {
      s--;
      *s=i%radix;
      i/=radix;
      if(*s<10){*s+='0';}
      else{*s=*s+'A'-10;}
      width++;
     }
     return s;
    }
    
    /*
     This function prints a string using fwrite.
     This algorithm is the best C representation of how my Assembly programs also work.
     Its true purpose is to be used in the putint function for conveniently printing integers, 
     but it can print any valid string.
    */
    
    void putstring(const char *s)
    {
     int c=0;
     const char *p=s;
     while(*p++){c++;} 
     fwrite(s,1,c,stdout);
    }
    
    /*
     This function uses both intstr and putstring to print an integer in the currently selected radix and width.
    */
    
    void putint(unsigned int i)
    {
     putstring(intstr(i));
    }
    
    /*
     This function is my own replacement for the strtol function from the C standard library.
     I didn't technically need to make this function because the functions from stdlib.h can already convert strings from bases 2 to 36 into integers.
     However, my function is simpler because it only requires 2 arguments instead of three, and it also does not handle negative numbers.
    I have never needed negative integers, but if I ever do, I can use the standard functions or write my own in the future.
    */
    
    int strint(const char *s)
    {
     int i=0;
     char c;
     if( radix<2 || radix>36 ){printf("Error: radix %i is out of range!\n",radix);}
     while( *s == ' ' || *s == '\n' || *s == '\t' ){s++;} /*skip whitespace at beginning*/
     while(*s!=0)
     {
      c=*s;
      if( c >= '0' && c <= '9' ){c-='0';}
      else if( c >= 'A' && c <= 'Z' ){c-='A';c+=10;}
      else if( c >= 'a' && c <= 'z' ){c-='a';c+=10;}
      else if( c == ' ' || c == '\n' || c == '\t' ){break;}
      else{printf("Error: %c is not an alphanumeric character!\n",c);break;}
      if(c>=radix){printf("Error: %c is not a valid character for radix %i\n",*s,radix);break;}
      i*=radix;
      i+=c;
      s++;
     }
     return i;
    }
    
    /*
     Those four functions above are the core of chastelib.
     While there may be extensions written for specific programs, these functions are essential for absolutely every program I write.
     
     The only reason you would not need them is if you only output numbers in decimal or hexadecimal, because printf in C can do all that just fine.
     However, the reason my core functions are superior to printf is that printf and its family of functions require the user to memorize all the arcane symbols for format specifiers.
     
     The core functions are primarily concerned with standard output and the conversion of strings and integers. They do not deal with input from the keyboard or files. A separate extension will be written for my programs that need these features.
    */
    
  • Chastity’s Review of the 2026 Amendment 3 in Missouri

    I was asked to make a statement on Missouri’s Amendment 3, which will be voted on in 2026. I believe that this amendment is a “bait and switch” strategy and that, as it is written, it is unacceptable both to Pro-Life people and to Transgender people.

    Myself being Pro-Life but also understanding more about the experiences of Transgender people, believe the amendment would be better written if it were purely about abortion and was not mixed with a ban on Gender Affirming Care.

    You can read about it from the following link, which I will be quoting from.

    https://ballotpedia.org/Missouri_Amendment_3,_Prohibit_Abortion_and_Gender_Transition_Procedures_for_Minors_Amendment_(2026)

    The following is the text as the amendment is written.

    Missouri Amendment 3, the Prohibit Abortion and Gender Transition Procedures for Minors Amendment, is on the ballot in Missouri as a legislatively referred constitutional amendment on November 3, 2026.[1]

    “yes” vote supports amending the Missouri Constitution to:

    • repeal the constitutional right to reproductive freedom, which voters ratified in 2024;
    • prohibit abortions except in cases of “medical emergency, fetal anomaly, rape, or incest,” and permit abortions in cases of rape or incest only through 12 weeks of gestation; 
    • prohibit gender transition surgeries for minors, as well as the prescription or administration of cross-sex hormones or puberty-blocking drugs to minors, with an exception for treatments “unrelated to the purpose of a gender transition;” and make other changes.

    “no” vote opposes amending the Missouri Constitution, keeping the existing constitutional right to reproductive freedom, and not adding provisions that prohibit abortion and gender transition surgeries and procedures.

    I believe that the 3 bulletpoints describing a yes vote are all problematic and that Pro-Life and Pro-Choice people have reasons to oppose them.

    • Point 1 repeals the right to reproductive freedom. I do not oppose reproductive freedom in a legal sense; I just oppose abortion, which is an act of murder that happens after people have already made their reproductive choices. I don’t like the way it is worded. I also believe we need more reproductive freedom, especially when it comes to sterilization that people want and are not able to access because their doctors refuse it or their insurance does not cover it. Those who don’t want children but still want to have sex should have access to expanded sterilization, and this falls under the category of reproductive freedom. Important to freedom is the freedom not to reproduce if you don’t want to.
    • Point 2 is perhaps more concerning because the cases of “fetal anomaly, rape, or incest” allow for abortion based on these broad categories. Fetal anomaly can also be used to abort babies based on their genetic status as intersex, sexual orientation, or other conditions related to things like autism, which are able to be predicted more accurately as science advances. Therefore, if I were to vote yes, I would still be allowing for people like myself to be aborted.
    • Point 3 should just be removed entirely. Gender transition surgeries and hormones have NOTHING at all to do with abortion and should be part of a separate amendment that people can vote on. Whoever wrote this amendment is poisoning politics by forcing people to vote on two unrelated topics.

    I personally plan to vote no on this amendment if I vote at all. I cannot agree to this amendment as it is written, and I also support gender affirming care for everyone, no matter whether those people are transgender, cisgender, or intersex. Honestly, the topics of these surgeries or hormone treatments are for doctors, patients, and parents(in the case of minors) to discuss, because, unlike abortion, which always kills an innocent human being, the vast category of Gender Transition can mean hundreds of different things socially, surgically, or hormonally. I will support no bans on whatever helps people feel aligned with their body more when it does not harm an innocent third party.

  • Abolish Taxation

    If you had the power to change one law, what would it be and why?

    Taxation is an evil that many believe is necessary. However, it also forces people to pay for wars, abortion, animal slaughter, and every other morally reprehensible thing. So if I could change one law, that would be my first choice to abolish all forms of tax.

  • Everlasting Love Episode 20: The Honest Truth

    Chastity and Judena talk about the red herring and other logical fallacies which distract from the topic being discussed and lead to dishonest communication by bringing up new subjects that have no relevance to what you were talking about in the first place.

    Matthew 5:33-37

    “33 “Again, you have heard that it was said to an older generation, ‘Do not break an oath, but fulfill your vows to the Lord.’ 34 But I say to you, do not take oaths at all—not by heaven because it is the throne of God, 35 not by earth because it is his footstool, and not by Jerusalem because it is the city of the great King. 36 Do not take an oath by your head because you are not able to make one hair white or black. 37 Let your word be ‘Yes, yes’ or ‘No, no.’ More than this is from the evil one.”

    https://netbible.org/bible/Matthew+5

  • March for Life Re-Condensed Pro-Life Speech

    The following is the final version of the speech directly as I read it in Washington DC at the March for Life. I had to do it quickly because there were many speakers but the people loved it.

    March for Life Re-Condensed Pro-Life Speech

    My name is Chastity, and I am a transgender woman here to represent the Rainbow Pro-Life Alliance as well as the Transgender people specifically. I am the last person you might expect to see at a Pro-Life event because I am not aligned with a specific church, political party, or anything else that you have been told is the foundation of defending the unborn. Still, I do follow the Golden Rule as taught by Jesus and other great teachers.

    As a former fetus, I speak for those who have not lived to speak for themselves. I speak for the unborn humans who were declared unworthy of life, liberty, and the pursuit of happiness. Each one of them was a human who would have been capable of doing many of the things I enjoy. I am not more or less worthy of life than those who were aborted for whatever reason invented by doctors, politicians, their parents, and whoever else convinced them that murder was the only solution to a child they saw as a problem.

    As an Asexual and Transgender person, I speak for many of the LGBTQIA+ people who were murdered or driven to suicide because they looked different, loved a person of the wrong gender, or were born with a soul or body that could not conform to the binary that society arbitrarily decided was required to earn family, friends, employment, housing, or medical care.

    For me personally, being Pro-Life is about protecting the lives of the most innocent souls who have done nothing wrong but have been killed and robbed of their life and future choices. The Pro-Choice philosophy does not respect their choices to live and become what they were conceived to be. Every single choice we make depends on being allowed to live long enough to know what these choices are, and also to understand that no choice would be possible unless our parents had chosen to let us live.

    The Pro-Choice philosophy does not ultimately care about our bodily autonomy because this ideology says it would have been completely okay for every single one of us to have been murdered in the womb. The only choice offered by those claiming to be Pro-Choice is Abortion.

    I also ask you to forgive many of the other Rainbow people who have been deceived into the Pro-Choice ideology, which promised to respect their bodily autonomy but failed to deliver on these promises, and only gave them death as a solution. Every one of the gay, transgender, and intersex people can be targeted for termination by detecting “genetic defects” which make us different, even at the DNA level. Discrimination against my people is just as common both before and after we are born.

    If the mainstream Cisgender Heterosexual Pro-Life people and the LGBTQIA+ community worked together and remembered who the real enemy is, it would lead to a much safer world for all of us. There are many misunderstandings based on false information. People like me and the others in Rainbow Pro-Life Alliance are a bridge to help the two sides see that we are not enemies by nature, but because we have been given the wrong messages by those who profit from confusing us to win elections or make money from killing us.

    And despite what you may have heard, the Pro-Life movement is the greatest ally that the LGBTQIA+ community can have, because you are fighting for our lives, even if you don’t truly know who or what we are. You may not know much about my community, nor do you have to agree with me about everything. But I am here today to tell you that as long as we agree that it is wrong to kill the most innocent people before they have a chance to live their lives, I think we can come to a better understanding over time and bridge the divide between the Rainbow people and the rest of the Pro-Life movement.