ITT: Jow Forums writes a C program line by line

ITT: Jow Forums writes a C program line by line.
I start.

#include

Attached: Linus Torvalds 'Nothing better than C'-CYvJPra7Ebk.jpg (1280x720, 136K)

Other urls found in this thread:

faqs.org/rfcs/rfc793.html
codeshare.io/5vgXzm
youtube.com/watch?v=7uLzaKlZSQQ
twitter.com/NSFWRedditVideo

return 0

printf "Hello Retard"

" select * from

#define true (rand() % 2)

Convince me Jow Forums isn't just college kids, webdevs and python basedboys larping as embedded engineers.

>no one knows how to into c
The absolute state.

Real engineers use facebook

Attached: DxAlEzcX0AQh1LT.jpg (499x524, 28K)

exit(1488); /* Sieg Heil */

how to get into embedded. I only touched software in college, every embedded i see requires years of experience. Theres no way for me to get into the market without being an EE or computer engineering instead of just cs. I FKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKed up

Attached: 1494354830869.jpg (900x900, 49K)

static int mul(int x, y) { int r; for(int i=0; i < y; i++) r += x; return r;) }

linux is ghey

>#define mul(x,y) (x * y)

>exponential in the length of y solution
>not a linear in the length of y solution
kys pajeet

Swallow your pride and work for peanuts to get your foot in the door. If you're lucky to work with chill people they won't hesitate to teach you what they know. This applies anywhere.

typedef enum {
COMMUNISM,
FASCISM,
LIBERALISM,
SOCIALISM,
} stupid_ideology_type;

/**
* \brief Fucks, shits on, berates chosen stupid ideology.
* \param ideology Chosen stupid ideology.
* \return Error code (errno-compatible).
*
* May return EINVAL if chosen ideology is not stupid.
* Example:
~~~
assert(EINVAL == fuck(CAPITALISM);
assert(0 == fuck(COMMUNISM);
~~~
*/
int fuck(ideology_type ideology);

>everything that isn't what I know is stupid
that's called stockholm syndrome

Jow Forums know nothing about programming

yea i dont mind taking peanuts for a bit, but is there anything I can do to get a bit more knowledegable. Are there any recomended book or start projects to get into embedded. I already know software and C, but have no clue about working with microcontrollers etc...

like some recomendded projects i can put on my resume, to get my foot in the door for embedded

write your own NES or Genesis game and out it on your resume

while (1) malloc(6969420);

Get a Pi, get a cross-compiler. Get a UART to USB cable or just plug your Pi straight into a monitor screen via HDMI.
Read up on peripherals, GPIO and I2C, buy a breadboard. Start tinkering.
Don't fall for Arduino or Atmel bullshit (either too much handholding or requires special programmer hardware).
It's a shame there's not much material on embedded out there, either just bits and pieces and projects that's not really for beginners.
>project
Maybe try bit-banging the uart protocol. It shows you know embedded and is not too complex.

are you fucking retarded? taking the b8 on this one

>stockholm syndrome is a condition which causes hostages to develop a psychological alliance with their captors as a survival strategy during captivity.

I can't, you're right.

fuck experience
just apply and see what happens
most positions in embedded still require you to "train" for a year or so before you're self-sufficient and decently quick
odds are that if you have a relevant degree you will still be considered/hired even though you lack experience
t. "girl" that went through the same thing a year ago

Attached: 1546375665132.jpg (225x225, 8K)

this

What kind of experience did you have? did you have any side projects in embedded. Im currently in my first year of software engineering, i plan to quit after another year and try to move to embedded. Also whats your average day look like at work?

Attached: 1487690343967.jpg (411x412, 65K)

meant to say my first year at a job as a software engineer, not in college.

Attached: 1553054735614.png (666x468, 215K)

You have to being main before you can return, brainlet.

Do assertions not need closing parentheses?

i took two courses in embedded systems in university
thats it
no portfolio or anything
i sent them my thesis though

average day varies from whatever i have to do, last week i read some requirements and maybe 300 pages of reference manuals and datasheets relevant to what im currently implementing (flash and eeprom) and wrote down/drew up some flow charts and descriptions of what needs doing and how it should look like
so now im basically in front of the computer writing code, trying to discern whether or not it works by looking at powertrace/trace32 thats connected to the ecu im working with
after that is done i will write some comments and documentation and submit it for verification

Attached: 1539546324502.jpg (711x1000, 159K)

alright you gave me some hope, im just gonna apply and see whatever happens. One last thing, how is your salary? Ive heard bad things about embedded pay compared to traditional SWE, althought i find embedded more interesting.

Attached: 1553285460395.jpg (750x742, 36K)

Please be my wife (male).

Based

is nobody gonna init main already
int main(){

embedded is bound to pay less because applicationfags get all the attention
the customer doesnt care that you have a really efficient PWM controller implementation or that your new log handler manages any which byte-order
he only cares about the stuff that shows, e.g. hmi, ux, etc.
i dont think i make much less than my application counterfags but i dont know
im in europe and i make about €55k annually
im a lesbian (male) so only if your a girl

Attached: 1550668703374.jpg (335x292, 19K)

}

55k€ isn't bad, thanks for bringing me back faith

/*

RFC 793 - Transmission Control Protocol

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Port | Destination Port |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Acknowledgment Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Offset |Rsvd |N|C|E|U|A|P|R|S|F| Window |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Urgent Pointer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

RFC_REF: faqs.org/rfcs/rfc793.html

*/
#pragma pack(push, 1)
typedef struct _TCP_HEADER_
{
UINT16 sourcePort;
UINT16 destinationPort;
UINT32 sequenceNumber;
UINT32 acknowledgementNumber;
union
{
UINT8 dataOffsetReservedAndNS;
struct
{
UINT8 nonceSum : 1;
UINT8 reserved : 3;
UINT8 dataOffset : 4;
}dORNS;
};
union
{
UINT8 controlBits;
struct
{
UINT8 FIN : 1;
UINT8 SYN : 1;
UINT8 RST : 1;
UINT8 PSH : 1;
UINT8 ACK : 1;
UINT8 URG : 1;
UINT8 ECE : 1;
UINT8 CWR : 1;
};
};
UINT16 window;
UINT16 checksum;
UINT16 urgentPointer;
}TCP_HEADER, *PTCP_HEADER;
C_ASSERT(sizeof(TCP_HEADER) == 20);
#pragma pack(pop)

#pragma warning(pop) // NAMELESS_STRUCT_UNION

>im a lesbian (male) so only if your a girl
wtf does this even mean?

#define 0 1

she’s transgender and insecure

That's what they all think at first, but eventually the inner anime girl takes over.

#error maybe not

backspace

it's really not hard. if you already have some experience, just learn C and see what happens. If not, build up a resume. Buy an ARM demo board and do some stuff with it.

Convince me Jow Forums isn't just NSA elite hackers, trannies building the singularity and cute anime girls.

what does this actually do?

Either 1 or 0 which is valid syntax for true or false

>nobody writes main
kek

codeshare.io/5vgXzm
hope in

Fucking love it when Jow Forums produces reflexive arguments.

return 1/1.0/"OP is a faggot";

while 0=0 {};

System.out.println("backspace");

ctrl + z

test

asm(

Attached: ice3.gif (750x563, 786K)

"hlt");

#define true (true || rand() % 2)
even better

for (;;)

It's a spider

printf("MADE IT THIS FAR");

const int a = 'b'

*redditors and /v/ fags who occupy Jow Forums know nothing about programming

unsigned char c = 256;

based

Underrated

#include
return 0
printf "Hello Retard"
" select * from
#define true (rand() % 2)
exit(1488); /* Sieg Heil */
static int mul(int x, y) { int r; for(int i=0; i < y; i++) r += x; return r;) }
int main(){
}
#define 0 1
return 1/1.0/"OP is a faggot";
while 0=0 {};
System.out.println("backspace");
asm(
"hlt");
#define true (true || rand() % 2)
for (;;) /* It's a spider */
printf("MADE IT THIS FAR");
const int a = 'b'
unsigned char c = 256; /* based */ /* Underrated */


time to see if it compiles

what if I turn into a girl (male)?

go away tranny

#include "STD.h" // homemade header file that gives you stds
// you'r welcum :^)

you forget the ;

what language is that?

thx Bjarne Soustroup

>didn't even notice undefined behaviour

kys pajeet

This worked for me

(You) chose the wrong language.
youtube.com/watch?v=7uLzaKlZSQQ

write(STDOUT_FILENO,"

You're not very bright, senpai

.toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString().toString()