Sponsored Content
Full Discussion: Embed text in C code
Top Forums Programming Embed text in C code Post 303023471 by Corona688 on Monday 17th of September 2018 06:08:22 PM
Old 09-17-2018
Tricky. Most large-scale architectures separate data and code.

What you might be able to find is the value of the pointer.

Code:
#include <stdio.h>

int main(void)
{
        printf("%p\n", "fixed text");
}

Compile and run that and you'll be given a hexadecimal value. Search for that value in the code segment and you won't find the text itself, but you'll find something which uses it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to embed shell script in a awk code

I have written a code to extract comma seperated values from a file and assign them to a variable inside awk code.i want to use one of these variable to be used in wget function i.e to pass the siteurl.How i can implement the shell command wget inside the awk for loop.code snippet is shown below. ... (8 Replies)
Discussion started by: rajbal
8 Replies

2. UNIX for Dummies Questions & Answers

How To Embed Image In output file

hello everyone, i am not well-versed with unix programming, but could you help me on how to embed an image(maybe a bitmap) to the output file? how about animations(avi, etc)? can this also be embeded to the output? thanks (0 Replies)
Discussion started by: minut
0 Replies

3. Web Development

php youtube style embed code

I'm looking to have a embed code for people be as short as possible. I'm trying to figure out how to do this. So something like... <EMBED SRC="http://www.website.com/myembedscript.php?id=1" HEIGHT=60 WIDTH=144> I'm looking to figure out what "myembedscript.php" should do. I have it... (0 Replies)
Discussion started by: mainegate
0 Replies

4. Shell Programming and Scripting

Why can't embed commands like fg or bg in a shell script ?

Hi Can someone explain in an easy way that why can't embed commands like fg or bg in a shell script ? (4 Replies)
Discussion started by: qiulang
4 Replies

5. Shell Programming and Scripting

Embed function in if statement

Hey everyone, I am just trying to figure out how to embed a function in an if statement. I have the following test script so far: PRIMARY=192.168.1.2 SECONDARY=192.168.1.1 function checkAlive { ping -c 1 -q $1 } if then echo "equaled 0" fi This... (1 Reply)
Discussion started by: msarro
1 Replies

6. Shell Programming and Scripting

embed a separator after each word in a text file

Folks, can anyone throw a code snippet here to insert a comma " , " after each word in a line when doing a file read and output the delimited text to a file. Appreciate your help Venu (9 Replies)
Discussion started by: venu
9 Replies

7. Shell Programming and Scripting

How to embed commands in awk search

Hello; When I try: awk '/$(date "+%y\/%m\/%d")/,0' It errors with: awk: There is a regular expression error. Invalid pattern. Is there anyway to make this work ?? Thank you (2 Replies)
Discussion started by: delphys
2 Replies

8. UNIX for Advanced & Expert Users

Embed tcl in ksh93 script

Hello everyone, I am trying to embed some tcl code inside a ksh93 script but I am not having any success. I even tried the simplest of code, something like this: . . jk=$(echo $(tcl << | write_file junkme "test"' | )) just to see if a file gets written. When I run there are no errors, but ... (3 Replies)
Discussion started by: gio001
3 Replies

9. Shell Programming and Scripting

How to embed sql query into our shell script?

Hi I would like to embed a sql query in my shell script. Also, before any the sql query is executed, i would like to validate username and password. (1 Reply)
Discussion started by: arghadeep adity
1 Replies

10. Shell Programming and Scripting

Embed image to the html script

hi, trying to embed an image to the html file to send out as an email. img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg but getting error as file not found after it aplies base64 on the file. (8 Replies)
Discussion started by: ATWC
8 Replies
al(1)							      General Commands Manual							     al(1)

NAME
al, al2 - Mono Assembly Linker SYNOPSIS
al [option] [source-files] DESCRIPTION
AL is the Mono assembly linkder. This linker is used to put together assemblies from a collection of modules (.netmodule files), assembly manifest files and resources. Do not confuse this with the monolinker, which is a tool to reduce the size of assemblies based on the code used. Use al for processing 1.0 assemblies, use al2 to process 2.0 assemblies. OPTIONS
@<filename> Read response file for more options. -algid:<id> Algorithm used to hash files. The <id> must be specified in hexadecimal. -base:<addr> | -baseaddress:<addr> Base address for the library. THIS FEATURE ISN'T IMPLEMENTED. -bugreport:<filename> Create a 'Bug Report' file. THIS FEATURE ISN'T IMPLEMENTED. -comp:<text> | -company:<text> This inserts the company name into the assembly metadata. This is equivalent to adding the [AssemblyCompany ("<text>")] attribute into C# source code. -config:<text> | -configuration:<text> This inserts the configuration string into the assembly metadata. This is equivalent to adding the [AssemblyConfiguration ("<text>")] attribute into C# source code. -copy:<text> | -copyright:<text> This inserts the copyright message into the assembly metadata. This is equivalent to adding the [AssemblyCopyright ("<text>")] attribute into C# source code. -c:<text> | -culture:<text> This inserts the supported culture into the assembly metadata. This is equivalent to adding the [AssemblyCulture ("<text>")] attribute into C# source code. -delay | -delay+ | -delaysign | -delaysign+ The generated assembly will be delay signed. This is equivalent to adding the [AssemblyDelaySignAttribute (true)] attribute into C# source code. -delay- | -delaysign- The generated assembly will be fully signed (i.e. not delay signed). This is the default option when signing (-keyfile or -key- name). -descr:<text> | -description:<text> This inserts a description of the assembly into the assembly metadata. This is equivalent to adding the [AssemblyDescription ("<text>")] attribute into C# source code. -e:<filename> | -evidence:<filename> This embed into the assembly the specified file as assembly security evidences. -fileversion:<version> Optional Win32 version. This overrides the normal assembly version. -flags:<flags> Assembly flags. The <flags> must be specified in hexadecimal. -fullpaths Display files using fully-qualified filenames. -keyf:<filename> | -keyfile:<filename> Strongname (sign) the output assembly using the key pair present in the specified strong name key file (snk). A full key pair is required unless the delay signing option is also specified (-delay+). This is equivalent to adding the [AssemblyKeyFile ("<text>")] attribute into C# source code. -keyn:<text> | -keyname:<text> Strongname (sign) the output assembly using the key pair present in the specified container. Delay signing isn't supported when using key containers. This is equivalent to adding the [AssemblyKeyName ("<text>")] attribute into C# source code. -main:<method> Specifies the method name of the assembly entry point. -nologo Suppress the startup banner and copyright message. -out:<filename> Output file name for the assembly manifest. -prod:<text> | product:<text> This inserts the product name into the assembly metadata. This is equivalent to adding the [AssemblyProduct ("<text>")] attribute into C# source code. -productv[ersion]:<text> This inserts the product version into the assembly metadata. This is equivalent to adding the [AssemblyInformationalVersion ("<text>")] attribute into C# source code. -t[arget]:<target> | -target=<target> Valid <target>s are: lib | library to create a library (.dll), exe to create a console executable (.exe), and win | winexe to create a Windows executable (.exe). -template:<filename> Specifies an assembly to get default options from. -title:<text> This inserts an assembly title into the assembly metadata. This is equivalent to adding the [AssemblyTitle ("<text>")] attribute into C# source code. -trade:<text> | -trademark:<text> This inserts a trademark message into the assembly metadata. This is equivalent to adding the [AssemblyTrademark ("<text>")] attribute into C# source code. -v:<version> | -version:<version> This inserts the assembly version into the assembly metadata. You can use * to auto-generate remaining numbers. This is equivalent to adding the [AssemblyVersion ("<text>")] attribute into C# source code. -win32icon:<filename> Use this icon for the output. -win32res:<filename> Specifies the Win32 resource file. -? | -help Display information about AL SEE ALSO
sn(1), monolinker(1) COPYRIGHT
Copyright (C) 2005 Novell, Inc (http://www.novell.com) MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. WEB SITE
Visit: http://www.mono-project.com for details al(1)
All times are GMT -4. The time now is 01:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy